FreePOOMA  2.4.1
Public Member Functions | Public Attributes
ConnectPair< T1, T2 > Class Template Reference

ConnectPair<T1,T2> stores two items of types T1 and T2, basically the same as std::pair from the STL. More...

#include <ConnectPair.h>

List of all members.

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

Detailed Description

template<class T1, class T2>
class ConnectPair< T1, T2 >

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.


Constructor & Destructor Documentation

template<class T1 , class T2 >
ConnectPair< T1, T2 >::ConnectPair ( const T1 &  a,
const T2 &  b 
) [inline]

Initialize from the two objects, and store copies.

template<class T1 , class T2 >
ConnectPair< T1, T2 >::~ConnectPair ( ) [inline]

Destructor does nothing special.


Member Function Documentation

template<class T1 , class T2 >
T1& ConnectPair< T1, T2 >::first ( ) [inline]
template<class T1 , class T2 >
const T1& ConnectPair< T1, T2 >::first ( ) const [inline]
template<class T1 , class T2 >
T2& ConnectPair< T1, T2 >::second ( ) [inline]
template<class T1 , class T2 >
const T2& ConnectPair< T1, T2 >::second ( ) const [inline]

Member Data Documentation

template<class T1 , class T2 >
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().

template<class T1 , class T2 >
T2 ConnectPair< T1, T2 >::second_m

The documentation for this class was generated from the following file: