3 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 const UUID_Node::Node_ID & UUID_Node::node_ID () const
10 return this->node_ID_;
14 UUID_Node::Node_ID & UUID_Node::node_ID ()
16 return this->node_ID_;
26 UUID::UUID (const UUID &right)
27 : thr_id_ (right.thr_id_),
30 ACE_OS::memcpy (&this->uuid_, &right.uuid_, BINARY_SIZE);
36 ACE_OS::memset (&this->uuid_, 0, BINARY_SIZE);
39 ACE_INLINE unsigned long
42 return ACE::hash_pjw (reinterpret_cast <const char *> (&this->uuid_),
47 UUID::time_low () const
49 return this->uuid_.time_low_;
53 UUID::time_low (ACE_UINT32 timelow)
55 this->uuid_.time_low_ = timelow;
59 UUID::time_mid () const
61 return this->uuid_.time_mid_;
65 UUID::time_mid (ACE_UINT16 time_mid)
67 this->uuid_.time_mid_ = time_mid;
71 UUID::time_hi_and_version () const
73 return this->uuid_.time_hi_and_version_;
77 UUID::time_hi_and_version (ACE_UINT16 time_hi_and_version)
79 this->uuid_.time_hi_and_version_ = time_hi_and_version;
83 UUID::clock_seq_hi_and_reserved () const
85 return this->uuid_.clock_seq_hi_and_reserved_;
89 UUID::clock_seq_hi_and_reserved (u_char clock_seq_hi_and_reserved)
91 this->uuid_.clock_seq_hi_and_reserved_ = clock_seq_hi_and_reserved;
95 UUID::clock_seq_low () const
97 return this->uuid_.clock_seq_low_;
101 UUID::clock_seq_low (u_char clock_seq_low)
103 this->uuid_.clock_seq_low_ = clock_seq_low;
106 ACE_INLINE const UUID_Node &
109 return this->uuid_.node_;
112 ACE_INLINE UUID_Node &
115 return this->uuid_.node_;
119 UUID::node (const UUID_Node & node)
121 ACE_OS::memcpy (&this->uuid_.node_,
123 UUID_Node::NODE_ID_SIZE);
126 ACE_INLINE ACE_CString*
129 return &this->thr_id_;
133 UUID::thr_id (char* thr_id)
135 this->thr_id_ = thr_id;
138 ACE_INLINE ACE_CString*
145 UUID::pid (char* pid)
150 #ifndef ACE_LACKS_SSCANF
152 UUID::from_string (const ACE_CString& uuidString)
154 this->from_string_i (uuidString);
159 UUID::operator == (const UUID &right) const
161 return 0 == ACE_OS::memcmp (&this->uuid_, &right.uuid_, BINARY_SIZE);
165 UUID::operator != (const UUID &right) const
167 return 0 != ACE_OS::memcmp (&this->uuid_, &right.uuid_, BINARY_SIZE);
171 UUID_Node::operator == (const UUID_Node& rt) const
173 for (size_t i = 0; i < NODE_ID_SIZE; ++i)
174 if (node_ID_ [i] != rt.node_ID_ [i])
181 UUID_Node::operator != (const UUID_Node& right) const
183 return !(*this == right);
187 // UUID_node::operator < (const UUID_node& rt) const
189 // UUID_node right = rt;
190 // for (size_t i = 0; i < NODE_ID_SIZE; ++i)
191 // if (nodeID_ [i] < right.nodeID ()[i])
198 ACE_END_VERSIONED_NAMESPACE_DECL