コード例 #1
0
// Operator function for 'greater than' that
// compares volumes of CBox objects.
bool CBox::operator>(const CBox& aBox) const
{
  return this->Volume() > aBox.Volume();
}
コード例 #2
0
ファイル: 源.cpp プロジェクト: Hackergeek/C
	bool operator == (const CBox& aBox) const
	{
		return this->Volume() == aBox.Volume();
	}
コード例 #3
0
ファイル: 源.cpp プロジェクト: Hackergeek/C
inline bool operator > (const double& value, const CBox& aBox)
{
	return value > aBox.Volume();
}
コード例 #4
0
ファイル: 源.cpp プロジェクト: Hackergeek/C
	bool operator < (const CBox& aBox) const
	{
		return this->Volume() < aBox.Volume();
	}
コード例 #5
0
ファイル: Ex7_10A.cpp プロジェクト: timkingh/CPP_Learning
 // Function to compare two boxes which returns true (1)
 // if the first is greater than the second, and false (0) otherwise
 int Compare(const CBox& xBox) const {
     return this->Volume() > xBox.Volume();
 }
コード例 #6
0
// Function for testing if a constant is < CBox object
bool operator<(const double& value, const CBox& aBox)
{ return value < aBox.Volume(); }
コード例 #7
0
// Operator to return the free volume in a packed CBox
double operator%( const CBox& aBox, const CBox& bBox)
{ return aBox.Volume() - (aBox / bBox) * bBox.Volume(); }
コード例 #8
0
ファイル: Ex7_10.cpp プロジェクト: timkingh/CPP_Learning
 // Function to compare two boxes which returns true
 // if the first is greater than the second, and false otherwise
 bool Compare(CBox& xBox) {
     return this->Volume() > xBox.Volume();
 }