#include <GenericArithmetic.H>
If, in addition, you want the member-function operators, you'll need to implement some generic operator-appliers in your derived class: see, in GenericArithmeticI.H, operatorCompare() and operatorOpEquals(). If you implement operator<, operator+= etc in your derived class, then that'll override the ones here (regardless of whether you've defined operatorCompare() and operatorOpEquals() in your derived class, though it would then be weird if you did).
Public Types | |
typedef ScalarT | scalar_type |
typedef SelfT | self_type |
Public Member Functions | |
virtual | ~GenericArithmeticable () |
GenericArithmeticable (SelfT *s) | |
bool | operator< (const SelfT &) const |
bool | operator> (const SelfT &) const |
bool | operator<= (const SelfT &) const |
bool | operator>= (const SelfT &) const |
SelfT & | operator+= (const SelfT &) |
SelfT & | operator+= (const ScalarT &) |
SelfT & | operator-= (const SelfT &) |
SelfT & | operator-= (const ScalarT &) |
SelfT & | operator*= (const SelfT &) |
SelfT & | operator*= (const ScalarT &) |
SelfT & | operator/= (const SelfT &) |
SelfT & | operator/= (const ScalarT &) |
Private Attributes | |
SelfT * | m_child |
typedef ScalarT GenericArithmeticable< ScalarT, SelfT >::scalar_type |
typedef SelfT GenericArithmeticable< ScalarT, SelfT >::self_type |
virtual GenericArithmeticable< ScalarT, SelfT >::~GenericArithmeticable | ( | ) | [inline, virtual] |
GenericArithmeticable< ScalarT, SelfT >::GenericArithmeticable | ( | SelfT * | s | ) | [inline] |
bool GenericArithmeticable< ScalarT, SelfT >::operator< | ( | const SelfT & | rhs | ) | const [inline] |
bool GenericArithmeticable< ScalarT, SelfT >::operator> | ( | const SelfT & | rhs | ) | const [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
bool GenericArithmeticable< ScalarT, SelfT >::operator<= | ( | const SelfT & | rhs | ) | const [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
bool GenericArithmeticable< ScalarT, SelfT >::operator>= | ( | const SelfT & | rhs | ) | const [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator+= | ( | const SelfT & | rhs | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator+= | ( | const ScalarT & | a | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator-= | ( | const SelfT & | rhs | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator-= | ( | const ScalarT & | a | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator*= | ( | const SelfT & | rhs | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator*= | ( | const ScalarT & | a | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator/= | ( | const SelfT & | rhs | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT & GenericArithmeticable< ScalarT, SelfT >::operator/= | ( | const ScalarT & | a | ) | [inline] |
References GenericArithmeticable< ScalarT, SelfT >::m_child.
SelfT* GenericArithmeticable< ScalarT, SelfT >::m_child [private] |
Referenced by GenericArithmeticable< ScalarT, SelfT >::operator*=(), GenericArithmeticable< ScalarT, SelfT >::operator+=(), GenericArithmeticable< ScalarT, SelfT >::operator-=(), GenericArithmeticable< ScalarT, SelfT >::operator/=(), GenericArithmeticable< ScalarT, SelfT >::operator<(), GenericArithmeticable< ScalarT, SelfT >::operator<=(), GenericArithmeticable< ScalarT, SelfT >::operator>(), and GenericArithmeticable< ScalarT, SelfT >::operator>=().