|
FreePOOMA
2.4.1
|
ConnectPair<T1,T2> stores two items of types T1 and T2, basically the same as std::pair from the STL. More...
#include <ConnectPair.h>
Public Member Functions | |
| ConnectPair (const T1 &a, const T2 &b) | |
| Initialize from the two objects, and store copies. | |
| ~ConnectPair () | |
| Destructor does nothing special. | |
Return references to the two elements, first and second | |
| T1 & | first () |
| const T1 & | first () const |
| T2 & | second () |
| const T2 & | second () const |
Public Attributes | |
| T1 | first_m |
| The two elements in the pair - we make them public to match the philosophy (but not the exact interface) of std::pair. | |
| T2 | second_m |
ConnectPair<T1,T2> stores two items of types T1 and T2, basically the same as std::pair from the STL.
The items are stored as copies. The public interface is either methods first() and second(), or the two public data objects first_m and second_m. This class is used for storing two items in a single object so that Connector can be specialized on the pair.
| ConnectPair< T1, T2 >::ConnectPair | ( | const T1 & | a, |
| const T2 & | b | ||
| ) | [inline] |
Initialize from the two objects, and store copies.
| ConnectPair< T1, T2 >::~ConnectPair | ( | ) | [inline] |
Destructor does nothing special.
| T1& ConnectPair< T1, T2 >::first | ( | ) | [inline] |
| const T1& ConnectPair< T1, T2 >::first | ( | ) | const [inline] |
References ConnectPair< T1, T2 >::first_m.
| T2& ConnectPair< T1, T2 >::second | ( | ) | [inline] |
| const T2& ConnectPair< T1, T2 >::second | ( | ) | const [inline] |
References ConnectPair< T1, T2 >::second_m.
| T1 ConnectPair< T1, T2 >::first_m |
The two elements in the pair - we make them public to match the philosophy (but not the exact interface) of std::pair.
Referenced by ConnectPair< T1, T2 >::first().
| T2 ConnectPair< T1, T2 >::second_m |
Referenced by ConnectPair< T1, T2 >::second().
1.7.6.1