summaryrefslogtreecommitdiff
path: root/ACE/ace/UUID.inl
diff options
context:
space:
mode:
authorhillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-05-14 00:04:12 +0000
committerhillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-05-14 00:04:12 +0000
commit1c59a798fe7063e7a8361a00da472dee9906c574 (patch)
treea810e5f7f2e3184b50e76ff29b5f7df530a8b6b1 /ACE/ace/UUID.inl
parent3db5de7cf8d6c47e879cee49905a8b2f6e71ad11 (diff)
downloadATCD-1c59a798fe7063e7a8361a00da472dee9906c574.tar.gz
Thu May 14 00:01:54 UTC 2009 James H. Hill <hillj@isis.vanderbilt.edu>
Diffstat (limited to 'ACE/ace/UUID.inl')
-rw-r--r--ACE/ace/UUID.inl20
1 files changed, 17 insertions, 3 deletions
diff --git a/ACE/ace/UUID.inl b/ACE/ace/UUID.inl
index e721ca738ea..d4167a74642 100644
--- a/ACE/ace/UUID.inl
+++ b/ACE/ace/UUID.inl
@@ -25,10 +25,11 @@ namespace ACE_Utils
}
ACE_INLINE
- UUID::UUID (const ACE_CString& uuid_string)
+ UUID::UUID (const UUID &right)
+ : thr_id_ (right.thr_id_),
+ pid_ (right.pid_)
{
- this->init ();
- this->from_string_i (uuid_string);
+ ACE_OS::memcpy (&this->uuid_, &right.uuid_, BINARY_SIZE);
}
ACE_INLINE
@@ -37,6 +38,19 @@ namespace ACE_Utils
}
+ ACE_INLINE void
+ UUID::init (void)
+ {
+ ACE_OS::memset (&this->uuid_, 0, BINARY_SIZE);
+ }
+
+ ACE_INLINE unsigned long
+ UUID::hash (void) const
+ {
+ return ACE::hash_pjw (reinterpret_cast <const char *> (&this->uuid_),
+ UUID::BINARY_SIZE);
+ }
+
ACE_INLINE ACE_UINT32
UUID::time_low (void) const
{