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

Pair_T.i

Go to the documentation of this file.
00001 // $Id: Pair_T.i,v 1.1.1.3 2003/02/21 18:36:32 chad Exp $
00002 
00003 template <class T1, class T2> ACE_INLINE
00004 ACE_Pair<T1, T2>::ACE_Pair (const T1 &t1,
00005                             const T2 &t2)
00006   : first_ (t1),
00007     second_ (t2)
00008 {
00009 }
00010 
00011 template <class T1, class T2> ACE_INLINE
00012 ACE_Pair<T1, T2>::ACE_Pair (void)
00013 {
00014 }
00015 
00016 template <class T1, class T2> ACE_INLINE T1 &
00017 ACE_Pair<T1, T2>::first (void)
00018 {
00019   return this->first_;
00020 }
00021 
00022 template <class T1, class T2> ACE_INLINE const T1 &
00023 ACE_Pair<T1, T2>::first (void) const
00024 {
00025   return this->first_;
00026 }
00027 
00028 template <class T1, class T2> ACE_INLINE void
00029 ACE_Pair<T1, T2>::first (const T1 &t1)
00030 {
00031   this->first_ = t1;
00032 }
00033 
00034 template <class T1, class T2> ACE_INLINE T2 &
00035 ACE_Pair<T1, T2>::second (void)
00036 {
00037   return this->second_;
00038 }
00039 
00040 template <class T1, class T2> ACE_INLINE const T2 &
00041 ACE_Pair<T1, T2>::second (void) const
00042 {
00043   return this->second_;
00044 }
00045 
00046 template <class T1, class T2> ACE_INLINE void
00047 ACE_Pair<T1, T2>::second (const T2 &t2)
00048 {
00049   this->second_ = t2;
00050 }
00051 
00052 template <class T1, class T2> ACE_INLINE int
00053 ACE_Pair<T1, T2>::operator== (const ACE_Pair<T1, T2> &rhs) const
00054 {
00055   return (this->first_ == rhs.first_ &&
00056           this->second_ == rhs.second_);
00057 }
00058 
00059 template <class T1, class T2> ACE_INLINE
00060 ACE_Reference_Pair<T1, T2>::ACE_Reference_Pair (T1 &t1,
00061                                                 T2 &t2)
00062   : first_ (t1),
00063     second_ (t2)
00064 {
00065 }
00066 
00067 template <class T1, class T2> ACE_INLINE T1 &
00068 ACE_Reference_Pair<T1, T2>::first (void) const
00069 {
00070   return this->first_;
00071 }
00072 
00073 template <class T1, class T2> ACE_INLINE T2 &
00074 ACE_Reference_Pair<T1, T2>::second (void) const
00075 {
00076   return this->second_;
00077 }
00078 
00079 template <class T1, class T2> ACE_INLINE int
00080 ACE_Reference_Pair<T1, T2>::operator== (const ACE_Reference_Pair<T1, T2> &rhs) const
00081 {
00082   return (this->first_ == rhs.first_ &&
00083           this->second_ == rhs.second_);
00084 }

Generated on Mon Jun 16 11:20:46 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002