Template definition of auxiliary base class for comparison of data structures.
More...
|
bool | operator< (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Less than operator.
|
|
bool | operator< (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Less than operator.
|
|
bool | operator> (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Greater than operator.
|
|
bool | operator> (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Greater than operator.
|
|
bool | operator<= (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Less than or equal operator.
|
|
bool | operator<= (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Less than or equal operator.
|
|
bool | operator>= (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Greater than or equal operator.
|
|
bool | operator>= (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Greater than or equal operator.
|
|
bool | operator== (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Equal operator.
|
|
bool | operator== (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Equal operator.
|
|
bool | operator!= (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Not equal operator.
|
|
bool | operator!= (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Not equal operator.
|
|
template<class JFirst_t, class JSecond_t>
struct JLANG::JComparable< JFirst_t, JSecond_t >
Template definition of auxiliary base class for comparison of data structures.
Specialisation of class JComparable for two data types.
The various specialisations of this class implement the operators < > <= >= == !=
.
The first template parameter should have the corresponding member methods:
bool less(const JSecond_t&) const;
bool more(const JSecond_t&) const;
where JFirst_t
andd JSecond_t
refers to the first and second template parameter, respectively. The second template parameter may be a primitive data type. This class uses in-class friend operators (see Barton-Nackman trick).
Definition at line 138 of file JComparable.hh.