Template operators.
[Basic types.]

Collaboration diagram for Template operators.:

Generic operators defined with the use of other operators. More...

Functions

template<class T, class U>
bool H3D::ArithmeticTypes::operator!= (const T &a, const U &b)
 Not equals operator.
template<class T>
H3D::ArithmeticTypes::operator/ (const T &a, const float &b)
 Division operator with float.
template<class T>
H3D::ArithmeticTypes::operator/ (const T &a, const double &b)
 Division operator with double.
template<class T>
H3D::ArithmeticTypes::operator/ (const T &a, const int &b)
 Division operator with int.
template<class T>
H3D::ArithmeticTypes::operator/ (const T &a, const long &b)
 Division operator with long.
template<class T>
H3D::ArithmeticTypes::operator/ (const T &a, const unsigned int &b)
 Division operator with unsigned int.
template<class 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.

Detailed Description

Generic operators defined with the use of other operators.

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.


Function Documentation

template<class T, class U>
bool H3D::ArithmeticTypes::operator!= const T &  a,
const U &  b
[inline]
 

Not equals operator.

Requires a == operator between the two types.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const unsigned long &  b
[inline]
 

Division operator with unsigned long.

Requires a * operator between T and long.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const unsigned int &  b
[inline]
 

Division operator with unsigned int.

Requires a * operator between T and long.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const long &  b
[inline]
 

Division operator with long.

Requires a * operator between T and long.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const int &  b
[inline]
 

Division operator with int.

Requires a * operator between T and int.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const double &  b
[inline]
 

Division operator with double.

Requires a * operator between T and double.

template<class T>
T H3D::ArithmeticTypes::operator/ const T &  a,
const float &  b
[inline]
 

Division operator with float.

Requires a * operator between T and float.


Generated on Thu Aug 24 12:38:44 2006 for H3D API by  doxygen 1.4.5