Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Reference_Pair Class Template Reference

Defines a pair that only hold references. More...

#include <Pair_T.h>

Collaboration diagram for ACE_Reference_Pair:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T1 first_type
typedef T2 second_type

Public Methods

 ACE_Reference_Pair (T1 &t1, T2 &t2)
 Constructor. More...

T1 & first (void) const
 Access first. More...

T2 & second (void) const
 Access second. More...

int operator== (const ACE_Reference_Pair< T1, T2 > &rhs) const

Protected Attributes

T1 & first_
 First. More...

T2 & second_
 Second. More...


Detailed Description

template<class T1, class T2>
class ACE_Reference_Pair< T1, T2 >

Defines a pair that only hold references.

Similar to the STL pair (but restricted to holding references and not copies).

Definition at line 82 of file Pair_T.h.


Member Typedef Documentation

template<class T1, class T2>
typedef T1 ACE_Reference_Pair::first_type
 

Definition at line 87 of file Pair_T.h.

template<class T1, class T2>
typedef T2 ACE_Reference_Pair::second_type
 

Definition at line 88 of file Pair_T.h.


Constructor & Destructor Documentation

template<class T1, class T2>
ACE_INLINE ACE_Reference_Pair< T1, T2 >::ACE_Reference_Pair T1 &    t1,
T2 &    t2
 

Constructor.

Definition at line 60 of file Pair_T.i.

00062   : first_ (t1),
00063     second_ (t2)
00064 {
00065 }


Member Function Documentation

template<class T1, class T2>
ACE_INLINE T1 & ACE_Reference_Pair< T1, T2 >::first void    const
 

Access first.

Definition at line 68 of file Pair_T.i.

References first_.

00069 {
00070   return this->first_;
00071 }

template<class T1, class T2>
ACE_INLINE int ACE_Reference_Pair< T1, T2 >::operator== const ACE_Reference_Pair< T1, T2 > &    rhs const
 

Definition at line 80 of file Pair_T.i.

References first_, and second_.

00081 {
00082   return (this->first_ == rhs.first_ &&
00083           this->second_ == rhs.second_);
00084 }

template<class T1, class T2>
ACE_INLINE T2 & ACE_Reference_Pair< T1, T2 >::second void    const
 

Access second.

Definition at line 74 of file Pair_T.i.

References second_.

00075 {
00076   return this->second_;
00077 }


Member Data Documentation

template<class T1, class T2>
T1& ACE_Reference_Pair::first_ [protected]
 

First.

Definition at line 106 of file Pair_T.h.

Referenced by first, and operator==.

template<class T1, class T2>
T2& ACE_Reference_Pair::second_ [protected]
 

Second.

Definition at line 109 of file Pair_T.h.

Referenced by operator==, and second.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:04 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002