|
Jpp
|
Template definition of auxiliary base class for composite data structures composed of base classes with equality evaluations capabilities. More...
#include <JMultiEquals.hh>
Static Protected Member Functions | |
| template<class JHead_t , class JTail_t > | |
| static bool | eq (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type) |
| Equals method for composite data types. More... | |
| template<class JHead_t > | |
| static bool | eq (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JNullType > > &type) |
| Equals method for composite data types. More... | |
Friends | |
| bool | operator== (const JClass_t &first, const JClass_t &second) |
| Equal operator. More... | |
| bool | operator!= (const JClass_t &first, const JClass_t &second) |
| Not equal operator. More... | |
Template definition of auxiliary base class for composite data structures composed of base classes with equality evaluations capabilities.
Each data type X in the type list should have the corresponding operator:
bool operator==(const X& first, const X& second);
This class uses in-class friend operators (see Barton-Nackman trick).
This class implements the operators == != .
Definition at line 31 of file JMultiEquals.hh.
|
inlinestaticprotected |
Equals method for composite data types.
| first | first object |
| second | second object |
| type | type |
Definition at line 42 of file JMultiEquals.hh.
|
inlinestaticprotected |
Equals method for composite data types.
| first | first object |
| second | second object |
| type | type |
Definition at line 61 of file JMultiEquals.hh.
|
friend |
Equal operator.
| first | first object |
| second | second object |
Definition at line 77 of file JMultiEquals.hh.
|
friend |
Not equal operator.
| first | first object |
| second | second object |
Definition at line 91 of file JMultiEquals.hh.
1.8.5