Jpp
17.2.1-pre0
the software that should make you happy
|
Template definition of auxiliary base class for composite data structures composed of base classes with comparisons capabilities. More...
#include <JMultiComparable.hh>
Static Protected Member Functions | |
template<class JHead_t , class JTail_t > | |
static bool | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type) |
Less than method for composite data types. More... | |
template<class JHead_t > | |
static bool | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JNullType > > &type) |
Less than method for composite data types. More... | |
Friends | |
bool | operator< (const JClass_t &first, const JClass_t &second) |
Less than operator. More... | |
bool | operator> (const JClass_t &first, const JClass_t &second) |
Greater than operator. More... | |
bool | operator<= (const JClass_t &first, const JClass_t &second) |
Less than or equal operator. More... | |
bool | operator>= (const JClass_t &first, const JClass_t &second) |
Greater than or equal operator. More... | |
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 comparisons capabilities.
Each data type T
in the type list should have the corresponding operator:
bool operator<(const T&, const T& second);
This class uses in-class friend operators (see Barton-Nackman trick).
This class implements the operators < > <= >= == !=
.
Definition at line 32 of file JMultiComparable.hh.
|
inlinestaticprotected |
Less than method for composite data types.
first | first object |
second | second object |
type | type |
Definition at line 43 of file JMultiComparable.hh.
|
inlinestaticprotected |
Less than method for composite data types.
first | first object |
second | second object |
type | type |
Definition at line 67 of file JMultiComparable.hh.
|
friend |
Less than operator.
first | first object |
second | second object |
Definition at line 83 of file JMultiComparable.hh.
|
friend |
Greater than operator.
first | first object |
second | second object |
Definition at line 97 of file JMultiComparable.hh.
|
friend |
Less than or equal operator.
first | first object |
second | second object |
Definition at line 111 of file JMultiComparable.hh.
|
friend |
Greater than or equal operator.
first | first object |
second | second object |
Definition at line 125 of file JMultiComparable.hh.
|
friend |
Equal operator.
first | first object |
second | second object |
Definition at line 139 of file JMultiComparable.hh.
|
friend |
Not equal operator.
first | first object |
second | second object |
Definition at line 154 of file JMultiComparable.hh.