Pair_T.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Pair_T.inl,v 4.2 2005/10/28 16:14:54 ossama Exp
00004 
00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 template <class T1, class T2> ACE_INLINE
00008 ACE_Pair<T1, T2>::ACE_Pair (const T1 &t1,
00009                             const T2 &t2)
00010   : first_ (t1),
00011     second_ (t2)
00012 {
00013 }
00014 
00015 template <class T1, class T2> ACE_INLINE
00016 ACE_Pair<T1, T2>::ACE_Pair (void)
00017 {
00018 }
00019 
00020 template <class T1, class T2> ACE_INLINE T1 &
00021 ACE_Pair<T1, T2>::first (void)
00022 {
00023   return this->first_;
00024 }
00025 
00026 template <class T1, class T2> ACE_INLINE const T1 &
00027 ACE_Pair<T1, T2>::first (void) const
00028 {
00029   return this->first_;
00030 }
00031 
00032 template <class T1, class T2> ACE_INLINE void
00033 ACE_Pair<T1, T2>::first (const T1 &t1)
00034 {
00035   this->first_ = t1;
00036 }
00037 
00038 template <class T1, class T2> ACE_INLINE T2 &
00039 ACE_Pair<T1, T2>::second (void)
00040 {
00041   return this->second_;
00042 }
00043 
00044 template <class T1, class T2> ACE_INLINE const T2 &
00045 ACE_Pair<T1, T2>::second (void) const
00046 {
00047   return this->second_;
00048 }
00049 
00050 template <class T1, class T2> ACE_INLINE void
00051 ACE_Pair<T1, T2>::second (const T2 &t2)
00052 {
00053   this->second_ = t2;
00054 }
00055 
00056 template <class T1, class T2> ACE_INLINE bool
00057 ACE_Pair<T1, T2>::operator== (const ACE_Pair<T1, T2> &rhs) const
00058 {
00059   return (this->first_ == rhs.first_ &&
00060           this->second_ == rhs.second_);
00061 }
00062 
00063 template <class T1, class T2> ACE_INLINE
00064 ACE_Reference_Pair<T1, T2>::ACE_Reference_Pair (T1 &t1,
00065                                                 T2 &t2)
00066   : first_ (t1),
00067     second_ (t2)
00068 {
00069 }
00070 
00071 template <class T1, class T2> ACE_INLINE T1 &
00072 ACE_Reference_Pair<T1, T2>::first (void) const
00073 {
00074   return this->first_;
00075 }
00076 
00077 template <class T1, class T2> ACE_INLINE T2 &
00078 ACE_Reference_Pair<T1, T2>::second (void) const
00079 {
00080   return this->second_;
00081 }
00082 
00083 template <class T1, class T2> ACE_INLINE bool
00084 ACE_Reference_Pair<T1, T2>::operator== (const ACE_Reference_Pair<T1, T2> &rhs) const
00085 {
00086   return (this->first_ == rhs.first_ &&
00087           this->second_ == rhs.second_);
00088 }
00089 
00090 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:59 2006 for ACE by doxygen 1.3.6