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

ACE_Pair Class Template Reference

Defines a pair. More...

#include <Pair_T.h>

Inheritance diagram for ACE_Pair:

Inheritance graph
[legend]
Collaboration diagram for ACE_Pair:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T1 first_type
typedef T2 second_type

Public Methods

 ACE_Pair (const T1 &t1, const T2 &t2)
 Constructor. More...

 ACE_Pair (void)
 Default constructor. More...

T1 & first (void)
 Get first. More...

const T1 & first (void) const
void first (const T1 &t1)
 Set first. More...

T2 & second (void)
 Get second. More...

const T2 & second (void) const
void second (const T2 &t2)
 Set second. More...

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

Protected Attributes

T1 first_
 First. More...

T2 second_
 Second. More...


Detailed Description

template<class T1, class T2>
class ACE_Pair< T1, T2 >

Defines a pair.

Similar to the STL pair.

Definition at line 32 of file Pair_T.h.


Member Typedef Documentation

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

Definition at line 37 of file Pair_T.h.

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

Definition at line 38 of file Pair_T.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 4 of file Pair_T.i.

00006   : first_ (t1),
00007     second_ (t2)
00008 {
00009 }

template<class T1, class T2>
ACE_INLINE ACE_Pair< T1, T2 >::ACE_Pair void   
 

Default constructor.

Definition at line 12 of file Pair_T.i.

00013 {
00014 }


Member Function Documentation

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

Set first.

Definition at line 29 of file Pair_T.i.

References first_.

00030 {
00031   this->first_ = t1;
00032 }

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

Definition at line 23 of file Pair_T.i.

References first_.

00024 {
00025   return this->first_;
00026 }

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

Get first.

Definition at line 17 of file Pair_T.i.

References first_.

Referenced by ACE_Cache_Map_Manager::find, ACE_Cache_Map_Manager::rebind, ACE_Cache_Map_Manager::trybind, and ACE_Cache_Map_Manager::unbind.

00018 {
00019   return this->first_;
00020 }

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

Definition at line 53 of file Pair_T.i.

References first_, and second_.

00054 {
00055   return (this->first_ == rhs.first_ &&
00056           this->second_ == rhs.second_);
00057 }

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

Set second.

Definition at line 47 of file Pair_T.i.

References second_.

00048 {
00049   this->second_ = t2;
00050 }

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

Definition at line 41 of file Pair_T.i.

References second_.

00042 {
00043   return this->second_;
00044 }

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

Get second.

Definition at line 35 of file Pair_T.i.

References second_.

Referenced by ACE_Cache_Map_Manager::bind, ACE_Cache_Map_Manager::find, ACE_Cache_Map_Manager::rebind, ACE_Cache_Map_Manager::trybind, and ACE_Cache_Map_Manager::unbind.

00036 {
00037   return this->second_;
00038 }


Member Data Documentation

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

First.

Definition at line 67 of file Pair_T.h.

Referenced by first, and operator==.

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

Second.

Definition at line 70 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:51:58 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002