|
Simple Application Framework
1
|
A pair of values which may be of a different data type. More...
#include <Pair.h>
Public Types | |
| typedef T1 | FirstMemberType |
| First member type. | |
| typedef T2 | SecondMemberType |
| Second member type. | |
Public Member Functions | |
| Pair () | |
| Default constructor. | |
| Pair (const T1 &v1) | |
| Constructor. | |
| Pair (const T1 &v1, const T2 &v2) | |
| Constructor. | |
| Pair (const Pair< T1, T2 > &p) | |
| Copy constructor. | |
| Pair< T1, T2 > & | operator= (const Pair< T1, T2 > &p) |
| Assignment operator. | |
| void | Swap (Pair< T1, T2 > &p) |
| Swap the content of two pairs. | |
Public Attributes | |
| T1 | m_first |
| First element. | |
| T2 | m_second |
| Second element. | |
A pair of values which may be of a different data type.
| typedef T1 Saf::Collection::Pair< T1, T2 >::FirstMemberType |
First member type.
| typedef T2 Saf::Collection::Pair< T1, T2 >::SecondMemberType |
Second member type.
| Saf::Collection::Pair< T1, T2 >::Pair | ( | ) | [inline] |
Default constructor.
| Saf::Collection::Pair< T1, T2 >::Pair | ( | const T1 & | v1 | ) | [inline, explicit] |
Constructor.
The second member is constructed using its default constructor.
| Saf::Collection::Pair< T1, T2 >::Pair | ( | const T1 & | v1, |
| const T2 & | v2 | ||
| ) | [inline] |
Constructor.
| Saf::Collection::Pair< T1, T2 >::Pair | ( | const Pair< T1, T2 > & | p | ) | [inline] |
Copy constructor.
| Pair<T1,T2>& Saf::Collection::Pair< T1, T2 >::operator= | ( | const Pair< T1, T2 > & | p | ) | [inline] |
Assignment operator.
| void Saf::Collection::Pair< T1, T2 >::Swap | ( | Pair< T1, T2 > & | p | ) | [inline] |
Swap the content of two pairs.
| T1 Saf::Collection::Pair< T1, T2 >::m_first |
First element.
| T2 Saf::Collection::Pair< T1, T2 >::m_second |
Second element.
1.8.0