|
Jpp
|
Template definition of auxiliary base class for comparison of data structures. More...
#include <JEquals.hh>
Friends | |
| bool | operator== (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Equal operator. More... | |
| bool | operator== (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Equal operator. More... | |
| bool | operator!= (const JFirst_t &first, typename JClass< JSecond_t >::argument_type second) |
| Not equal operator. More... | |
| bool | operator!= (typename JClass< JSecond_t >::argument_type first, const JFirst_t &second) |
| Not equal operator. More... | |
Template definition of auxiliary base class for comparison of data structures.
Specialisation of class JEquals for two data types.
The various specialisations of this class implement the operators == != .
The first template parameter should have the corresponding member methods:
bool equals(const JFirst_t&) const;
bool equals(const JSecond_t&) const;
where JFirst_t and JSecond_t refer 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 24 of file JEquals.hh.
|
friend |
Equal operator.
| first | first object |
| second | second object |
Definition at line 92 of file JEquals.hh.
|
friend |
Equal operator.
| first | first object |
| second | second object |
Definition at line 106 of file JEquals.hh.
|
friend |
Not equal operator.
| first | first object |
| second | second object |
Definition at line 120 of file JEquals.hh.
|
friend |
Not equal operator.
| first | first object |
| second | second object |
Definition at line 134 of file JEquals.hh.
1.8.16