GenericArithmeticable< ScalarT, SelfT > Struct Template Reference
#include <GenericArithmetic.H>
Collaboration diagram for GenericArithmeticable< ScalarT, SelfT >:
[legend]List of all members.
Detailed Description
template<typename ScalarT, typename SelfT>
struct GenericArithmeticable< ScalarT, SelfT >
Class that you need to derive from, if you want the *global* operators below to be available for your class. For example: class Foo : public GenericArithmeticable<double,Foo> { public: Foo() : GenericArithmeticable<double,Foo>(this) { } Foo& operator+=( const Foo& ); Foo& operator+=( const double& ); [etc] };
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).
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
template<typename ScalarT, typename SelfT> |
| bool GenericArithmeticable< ScalarT, SelfT >::operator< |
( |
const SelfT & |
|
) |
const |
|
|
template<typename ScalarT, typename SelfT> |
| bool GenericArithmeticable< ScalarT, SelfT >::operator> |
( |
const SelfT & |
|
) |
const |
|
|
template<typename ScalarT, typename SelfT> |
| bool GenericArithmeticable< ScalarT, SelfT >::operator<= |
( |
const SelfT & |
|
) |
const |
|
|
template<typename ScalarT, typename SelfT> |
| bool GenericArithmeticable< ScalarT, SelfT >::operator>= |
( |
const SelfT & |
|
) |
const |
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator+= |
( |
const SelfT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator+= |
( |
const ScalarT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator-= |
( |
const SelfT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator-= |
( |
const ScalarT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator *= |
( |
const SelfT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator *= |
( |
const ScalarT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator/= |
( |
const SelfT & |
|
) |
|
|
|
template<typename ScalarT, typename SelfT> |
| SelfT & GenericArithmeticable< ScalarT, SelfT >::operator/= |
( |
const ScalarT & |
|
) |
|
|
Member Data Documentation
The documentation for this struct was generated from the following files:
Generated on Fri May 4 13:31:47 2007 for Chombo by
1.3.6