UUID.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 //UUID.inl,v 1.4 2005/10/28 23:55:10 ossama Exp
00004 
00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 namespace ACE_Utils
00008 {
00009 
00010   /// Data Members for Class Attributes
00011   ACE_INLINE ACE_UINT32
00012   UUID::timeLow (void)
00013   {
00014     return this->timeLow_;
00015   }
00016 
00017   ACE_INLINE void
00018   UUID::timeLow (ACE_UINT32 timelow)
00019   {
00020     this->timeLow_ = timelow;
00021   }
00022 
00023   ACE_INLINE ACE_UINT16
00024   UUID::timeMid (void)
00025   {
00026     return this->timeMid_;
00027   }
00028 
00029   ACE_INLINE void
00030   UUID::timeMid (ACE_UINT16 time_mid)
00031   {
00032     this->timeMid_ = time_mid;
00033   }
00034 
00035   ACE_INLINE ACE_UINT16
00036   UUID::timeHiAndVersion (void)
00037   {
00038     return this->timeHiAndVersion_;
00039   }
00040 
00041   ACE_INLINE void
00042   UUID::timeHiAndVersion (ACE_UINT16 timeHiAndVersion)
00043   {
00044     this->timeHiAndVersion_ = timeHiAndVersion;
00045   }
00046 
00047   ACE_INLINE u_char
00048   UUID::clockSeqHiAndReserved (void)
00049   {
00050     return this->clockSeqHiAndReserved_;
00051   }
00052 
00053   ACE_INLINE void
00054   UUID::clockSeqHiAndReserved (u_char clockSeqHiAndReserved)
00055   {
00056     this->clockSeqHiAndReserved_ = clockSeqHiAndReserved;
00057   }
00058 
00059   ACE_INLINE u_char
00060   UUID::clockSeqLow (void)
00061   {
00062     return this->clockSeqLow_;
00063   }
00064 
00065   ACE_INLINE void
00066   UUID::clockSeqLow (u_char clockSeqLow)
00067   {
00068     this->clockSeqLow_ = clockSeqLow;
00069   }
00070 
00071   ACE_INLINE UUID_node*
00072   UUID::node (void)
00073   {
00074     return this->node_;
00075   }
00076 
00077   ACE_INLINE void
00078   UUID::node (UUID_node* node)
00079   {
00080     if (node_release_ == 1)
00081     delete node_;
00082 
00083     this->node_ = node;
00084     node_release_ = 0;
00085   }
00086 
00087   ACE_INLINE ACE_CString*
00088   UUID::thr_id (void)
00089   {
00090     return &this->thr_id_;
00091   }
00092 
00093   ACE_INLINE void
00094   UUID::thr_id (char* thr_id)
00095   {
00096     this->thr_id_ = thr_id;
00097   }
00098 
00099   ACE_INLINE ACE_CString*
00100   UUID::pid (void)
00101   {
00102     return &this->pid_;
00103   }
00104 
00105   ACE_INLINE void
00106   UUID::pid (char* pid)
00107   {
00108     this->pid_ = pid;
00109   }
00110 
00111   //ACE_INLINE bool
00112   //UUID::operator == (const UUID &right) const
00113   //{
00114   //  UUID rt (right);
00115   //  if ((timeLow_ != rt.timeLow ()) ||
00116   //      (timeMid_ != rt.timeMid ()) ||
00117   //      (timeHiAndVersion_ != rt.timeHiAndVersion ()) ||
00118   //      (clockSeqHiAndReserved_ != rt.clockSeqHiAndReserved ()) ||
00119   //      (clockSeqLow_ != rt.clockSeqLow ()) ||
00120   //      (node_ != rt.node ()))
00121   //    {
00122   //      return false;
00123   //    }
00124 
00125   //  return true;
00126   //}
00127 
00128   //ACE_INLINE bool
00129   //UUID::operator != (const UUID &right) const
00130   //{
00131   //  return !(*this == right);
00132   //}
00133 
00134 //  ACE_INLINE bool
00135 //UUID::operator < (const UUID &rt) const
00136 //  {
00137 //    UUID right (rt);
00138 //    if ((timeLow_ < right.timeLow ()) ||
00139 //        (timeMid_ < right.timeMid ()) ||
00140 //        (timeHiAndVersion_ < right.timeHiAndVersion ()) ||
00141 //        (clockSeqHiAndReserved_ < right.clockSeqHiAndReserved ()) ||
00142 //        (clockSeqLow_ < right.clockSeqLow ()) ||
00143 //        (node_ < right.node ()))
00144 //      {
00145 //        return true;
00146 //      }
00147 //
00148 //    return false;
00149 //  }
00150 //
00151 //  ACE_INLINE bool
00152 //  UUID::operator > (const UUID &right) const
00153 //  {
00154 //    return right < *this;
00155 //  }
00156 //
00157 //  ACE_INLINE bool
00158 //  UUID::operator <= (const UUID &right) const
00159 //  {
00160 //    return !(*this > right);
00161 //  }
00162 //
00163 //  ACE_INLINE bool
00164 //  UUID::operator >= (const UUID &right) const
00165 //  {
00166 //    return !(*this < right);
00167 //  }
00168 //
00169 //  ACE_INLINE bool
00170 //  UUID_node::operator == (const UUID_node& rt) const
00171 //  {
00172 //    UUID_node right = rt;
00173 //    for (size_t i = 0; i < NODE_ID_SIZE; ++i)
00174 //    {
00175 //      if (nodeID_ [i] != right.nodeID ()[i])
00176 //        {
00177 //          return false;
00178 //        }
00179 //    }
00180 //    return true;
00181 //  }
00182 //
00183 //  ACE_INLINE bool
00184 //  UUID_node::operator != (const UUID_node& right) const
00185 //  {
00186 //    return !(*this == right);
00187 //  }
00188 //
00189 //  ACE_INLINE bool
00190 //  UUID_node::operator < (const UUID_node& rt) const
00191 //  {
00192 //    UUID_node right = rt;
00193 //    for (size_t i = 0; i < NODE_ID_SIZE; ++i)
00194 //      if (nodeID_ [i] < right.nodeID ()[i])
00195 //      return true;
00196 //
00197 //    return false;
00198 //  }
00199 }
00200 
00201 ACE_END_VERSIONED_NAMESPACE_DECL

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