#include <Pair_T.h>
Collaboration diagram for ACE_Pair< T1, T2 >:
Public Types | |
typedef T1 | first_type |
typedef T2 | second_type |
Public Member Functions | |
ACE_Pair (const T1 &t1, const T2 &t2) | |
Constructor. | |
ACE_Pair (void) | |
Default constructor. | |
T1 & | first (void) |
Get first. | |
const T1 & | first (void) const |
void | first (const T1 &t1) |
Set first. | |
T2 & | second (void) |
Get second. | |
const T2 & | second (void) const |
void | second (const T2 &t2) |
Set second. | |
bool | operator== (const ACE_Pair< T1, T2 > &rhs) const |
Protected Attributes | |
T1 | first_ |
First. | |
T2 | second_ |
Second. |
Similar to the STL pair.
Definition at line 34 of file Pair_T.h.
typedef T1 ACE_Pair< T1, T2 >::first_type |
typedef T2 ACE_Pair< T1, T2 >::second_type |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Pair< T1, T2 >::ACE_Pair | ( | const T1 & | t1, | |
const T2 & | t2 | |||
) |
ACE_INLINE void ACE_Pair< T1, T2 >::first | ( | const T1 & | t1 | ) |
Set first.
Definition at line 33 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::first_.
00034 { 00035 this->first_ = t1; 00036 }
ACE_INLINE const T1 & ACE_Pair< T1, T2 >::first | ( | void | ) | const |
Definition at line 27 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::first_.
00028 { 00029 return this->first_; 00030 }
ACE_INLINE T1 & ACE_Pair< T1, T2 >::first | ( | void | ) |
Get first.
Definition at line 21 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::first_.
Referenced by ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::bind_create_key(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::bind_modify_key(), ACE_Cache_Map_Manager< KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES >::find(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::rebind(), and ACE_Cache_Map_Manager< KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES >::unbind().
00022 { 00023 return this->first_; 00024 }
ACE_INLINE bool ACE_Pair< T1, T2 >::operator== | ( | const ACE_Pair< T1, T2 > & | rhs | ) | const |
Definition at line 57 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::first_, and ACE_Pair< T1, T2 >::second_.
ACE_INLINE void ACE_Pair< T1, T2 >::second | ( | const T2 & | t2 | ) |
Set second.
Definition at line 51 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::second_.
00052 { 00053 this->second_ = t2; 00054 }
ACE_INLINE const T2 & ACE_Pair< T1, T2 >::second | ( | void | ) | const |
Definition at line 45 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::second_.
00046 { 00047 return this->second_; 00048 }
ACE_INLINE T2 & ACE_Pair< T1, T2 >::second | ( | void | ) |
Get second.
Definition at line 39 of file Pair_T.inl.
References ACE_Pair< T1, T2 >::second_.
Referenced by ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::bind_create_key(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::bind_modify_key(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::find(), ACE_Cache_Map_Manager< KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES >::find(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::rebind(), ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::unbind(), and ACE_Cache_Map_Manager< KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES >::unbind().
00040 { 00041 return this->second_; 00042 }
First.
Definition at line 69 of file Pair_T.h.
Referenced by ACE_Pair< T1, T2 >::first(), and ACE_Pair< T1, T2 >::operator==().
Second.
Definition at line 72 of file Pair_T.h.
Referenced by ACE_Pair< T1, T2 >::operator==(), and ACE_Pair< T1, T2 >::second().