Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Public Member Functions | |
Pair (void) | |
Pair (const T1 &_fst, const T2 &_snd) | |
Pair (const Pair< T1, T2 > &pair) | |
Pair< T1, T2 > & | operator= (const Pair< T1, T2 > &pair) |
bool | operator== (const Pair< T1, T2 > &pair) const |
bool | operator!= (const Pair< T1, T2 > &pair) const |
bool | operator< (const Pair< T1, T1 > &pair) const |
bool | operator<= (const Pair< T1, T1 > &pair) const |
bool | operator> (const Pair< T1, T1 > &pair) const |
bool | operator>= (const Pair< T1, T1 > &pair) const |
Public Attributes | |
T1 | fst |
T2 | snd |
This template class is mainly useful for returning or passing in parameter a data item composed of two values.
Pairs are useful to avoid developing specific structures or classes to group two data. To help using pairs, some shortcut functions are provided:
A common use of the last function is:
T1 | First value type. |
T2 | Second value type. |
|
inline |
Build a pair from two values.
_fst | First value. |
_snd | Second value. |
Build a pair by copying another pair.
pair | Pair to copy. |
Referenced by Pair< const elm::rtti::Type *, const void * >::operator>=().
Referenced by Pair< const elm::rtti::Type *, const void * >::operator>().
Referenced by Pair< const elm::rtti::Type *, const void * >::operator!=().
fst |
The first value of the pair : may be read or written.
Referenced by AssocComparator< string, string, Comparator< string > >::compare(), AssocComparator< string, string, Comparator< string > >::doCompare(), AssocEquiv< K, T, E >::equals(), TextSerializer::flush(), XOMElementSerializer::flush(), PairAdapter< K, T >::key(), MarkerBuilder< K, T, C >::make(), Pair< const elm::rtti::Type *, const void * >::operator<(), Pair< const elm::rtti::Type *, const void * >::operator<=(), Pair< const elm::rtti::Type *, const void * >::operator=(), Pair< const elm::rtti::Type *, const void * >::operator==(), and AbstractTree::Stack::topNode().
snd |
The second value of the pair : may be read or written.
Referenced by TextSerializer::flush(), XOMElementSerializer::flush(), TreeMap< K, T, C, E, A >::get(), MarkerBuilder< K, T, C >::make(), Pair< const elm::rtti::Type *, const void * >::operator<(), Pair< const elm::rtti::Type *, const void * >::operator<=(), Pair< const elm::rtti::Type *, const void * >::operator=(), Pair< const elm::rtti::Type *, const void * >::operator==(), Map< Pair< K, K >, T, segment_comparator_t >::operator[](), PairAdapter< K, T >::ref(), AbstractTree::Stack::topDir(), and PairAdapter< K, T >::value().