dlvhex
2.5.0
|
Implements a pair of an index and an element. More...
#include <include/dlvhex2/Set.h>
Public Member Functions | |
SortElement () | |
Constructor. | |
SortElement (int i, T el) | |
Constructor. | |
bool | operator< (const SortElement< T > &el2) const |
Compares the index of el2 to the one in this object. | |
bool | operator> (const SortElement< T > &el2) const |
Compares the index of el2 to the one in this object. | |
bool | operator== (const SortElement< T > &el2) const |
Compares the index of el2 to the one in this object. | |
bool | operator!= (const SortElement< T > &el2) const |
Compares the index of el2 to the one in this object. | |
Data Fields | |
long | index |
Index. | |
T | elem |
Element. |
Implements a pair of an index and an element.
SortElement< T >::SortElement | ( | ) | [inline] |
SortElement< T >::SortElement | ( | int | i, |
T | el | ||
) | [inline] |
Constructor.
i | See SortElement::index. |
el | See SortElement::elem. |
bool SortElement< T >::operator!= | ( | const SortElement< T > & | el2 | ) | const [inline] |
Compares the index of el2
to the one in this object.
el2 | Second SortElement. |
el2
and false otherwise. Definition at line 559 of file Set.h.
References SortElement< T >::index.
bool SortElement< T >::operator< | ( | const SortElement< T > & | el2 | ) | const [inline] |
Compares the index of el2
to the one in this object.
el2 | Second SortElement. |
el2
and false otherwise. Definition at line 534 of file Set.h.
References SortElement< T >::index.
bool SortElement< T >::operator== | ( | const SortElement< T > & | el2 | ) | const [inline] |
Compares the index of el2
to the one in this object.
el2 | Second SortElement. |
el2
and false otherwise. Definition at line 551 of file Set.h.
References SortElement< T >::index.
bool SortElement< T >::operator> | ( | const SortElement< T > & | el2 | ) | const [inline] |
Compares the index of el2
to the one in this object.
el2 | Second SortElement. |
el2
and false otherwise. Definition at line 542 of file Set.h.
References SortElement< T >::index.
T SortElement< T >::elem |
long SortElement< T >::index |
Index.
Definition at line 517 of file Set.h.
Referenced by SortElement< T >::operator!=(), SortElement< T >::operator<(), SortElement< T >::operator==(), and SortElement< T >::operator>().