Collaboration diagram for Template operators.:
|
Functions | |
| template<class T, class U> | |
| bool | H3D::ArithmeticTypes::operator!= (const T &a, const U &b) |
| Not equals operator. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const float &b) |
| Division operator with float. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const double &b) |
| Division operator with double. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const int &b) |
| Division operator with int. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const long &b) |
| Division operator with long. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const unsigned int &b) |
| Division operator with unsigned int. | |
| template<class T> | |
| T | H3D::ArithmeticTypes::operator/ (const T &a, const unsigned long &b) |
| Division operator with unsigned long. | |
| template<class T, class U> | |
| void | H3D::ArithmeticTypes::operator+= (T &a, const U &b) |
| += operator. Requires the + operator between the types. | |
| template<class T, class U> | |
| void | H3D::ArithmeticTypes::operator-= (T &a, const U &b) |
| -= operator. Requires the - operator between the types. | |
| template<class T, class U> | |
| void | H3D::ArithmeticTypes::operator *= (T &a, const U &b) |
| *= operator. Requires the * operator between the types. | |
| template<class T, class U> | |
| void | H3D::ArithmeticTypes::operator/= (T &a, const U &b) |
| /= operator. Requires the / operator between the types. | |
| template<class T, class U> | |
| void | H3D::ArithmeticTypes::operator%= (T &a, const U &b) |
| %= operator. Requires the % operator between the types. | |
This is to minimize the number of operators we need to define for each specific types. Most of the times it is enough to define ==, + and * operators for each class explicitly.
|
||||||||||||||||
|
Not equals operator. Requires a == operator between the two types. |
|
||||||||||||||||
|
Division operator with unsigned long. Requires a * operator between T and long. |
|
||||||||||||||||
|
Division operator with unsigned int. Requires a * operator between T and long. |
|
||||||||||||||||
|
Division operator with long. Requires a * operator between T and long. |
|
||||||||||||||||
|
Division operator with int. Requires a * operator between T and int. |
|
||||||||||||||||
|
Division operator with double. Requires a * operator between T and double. |
|
||||||||||||||||
|
Division operator with float. Requires a * operator between T and float. |
1.4.5