Cmp< T > Class Template Reference
Collaboration diagram for Cmp< T >:
![]()
Detailed Descriptiontemplate<typename T>
|
Cmp | ( | const T & | t1, |
const T & | t2 | ||
) | [inline] |
~Cmp | ( | ) | [inline] |
void _compare | ( | ) | const [inline, private] |
Perform the actual comparison if necessary.
Definition at line 79 of file Cmp.hh.
References Cmp< T >::_objects, Cmp< T >::_value, Rivet::EQUIVALENT, Rivet::ORDERED, Rivet::UNDEFINED, and Rivet::UNORDERED.
Referenced by Cmp< T >::operator CmpState(), Cmp< Projection >::operator CmpState(), Cmp< double >::operator CmpState(), Cmp< T >::operator int(), Cmp< Projection >::operator int(), Cmp< double >::operator int(), Cmp< T >::operator||(), Cmp< Projection >::operator||(), and Cmp< double >::operator||().
operator CmpState | ( | ) | const [inline] |
Automatically convert to an enum.
Definition at line 57 of file Cmp.hh.
References Cmp< T >::_compare(), and Cmp< T >::_value.
operator int | ( | ) | const [inline] |
Automatically convert to an integer.
Definition at line 63 of file Cmp.hh.
References Cmp< T >::_compare(), and Cmp< T >::_value.
The assignment operator.
Definition at line 47 of file Cmp.hh.
References Cmp< T >::_value.
{ _value = x; return *this; }
If this state is equivalent, set this state to the state of c.
Definition at line 70 of file Cmp.hh.
References Cmp< T >::_compare(), Cmp< T >::_value, and Rivet::EQUIVALENT.
{ _compare(); if (_value == EQUIVALENT) _value = c; return *this; }
pair<const T*, const T*> _objects [private] |
The objects to be compared.
Definition at line 92 of file Cmp.hh.
Referenced by Cmp< T >::_compare(), and Cmp< Projection >::_compare().
The state of this object.
Definition at line 89 of file Cmp.hh.
Referenced by Cmp< T >::_compare(), Cmp< Projection >::_compare(), Cmp< double >::_compare(), Cmp< T >::operator CmpState(), Cmp< Projection >::operator CmpState(), Cmp< double >::operator CmpState(), Cmp< T >::operator int(), Cmp< Projection >::operator int(), Cmp< double >::operator int(), Cmp< T >::operator=(), Cmp< Projection >::operator=(), Cmp< double >::operator=(), Cmp< T >::operator||(), Cmp< Projection >::operator||(), and Cmp< double >::operator||().