ULAPI
8.0
|
A ULPair<T, U> object is an ordered pair of objects of the specified types. More...
#include <ulcontainers.h>
Public Member Functions | |
ULPair () | |
ULPair (const T &firstItem, const U &secondItem) | |
ULPair (const ULPair< T, U > &p) | |
ULPair< T, U > & | operator= (const ULPair< T, U > &p) |
bool | operator== (const ULPair< T, U > &p) const |
bool | operator< (const ULPair< T, U > &p) const |
bool | operator!= (const ULPair< T, U > &p) const |
const T & | getFirst () const |
const U & | getSecond () const |
void | setFirst (const T &f) |
void | setSecond (const U &s) |
Public Attributes | |
T | first |
U | second |
A ULPair<T, U> object is an ordered pair of objects of the specified types.
The generic types T and U must have operators == and < defined.
Constructor that assigns the parameters to the ULPair's components.
const T & ULPair< T, U >::getFirst | ( | ) | const |
const U & ULPair< T, U >::getSecond | ( | ) | const |
Inequality operator.
Comparison operator. Tests for lexigraphical ordering of the ULPairs. The U element is only used to determine order if the T elements are of equal value.
p | The second pair in the evaluation |
Assignment operator.
Equality operator.
void ULPair< T, U >::setFirst | ( | const T & | f | ) |
Assigns a new value to this pair's first component.
[in] | f | The new value. |
void ULPair< T, U >::setSecond | ( | const U & | s | ) |
Assigns a new value to this pair's second component.
[in] | s | The new value. |
T ULPair< T, U >::first |
U ULPair< T, U >::second |