2#ifndef POSIX_POSIXGUID_H
3#define POSIX_POSIXGUID_H
72 uuid_clear(this->
uuid);
90 n_assert((0 != ptr) && (size ==
sizeof(uuid_t)));
Posix implementation of the Util::Guid class.
Definition posixguid.h:23
SizeT AsBinary(const unsigned char *&outPtr) const
get pointer to binary data
Definition posixguid.cc:134
bool operator>(const PosixGuid &rhs) const
greater-then operator
Definition posixguid.cc:80
void Generate()
generate a new guid
Definition posixguid.cc:110
static PosixGuid FromString(const Util::String &str)
construct from string representation
Definition posixguid.cc:144
bool operator==(const PosixGuid &rhs) const
equality operator
Definition posixguid.cc:40
bool operator!=(const PosixGuid &rhs) const
inequlality operator
Definition posixguid.cc:50
bool operator>=(const PosixGuid &rhs) const
greater-or-equal operator
Definition posixguid.cc:90
static PosixGuid FromBinary(const unsigned char *ptr, SizeT numBytes)
construct from binary representation
Definition posixguid.cc:157
void operator=(const PosixGuid &rhs)
assignement operator
Definition posixguid.cc:17
PosixGuid()
constructor
Definition posixguid.h:70
uuid_t uuid
Definition posixguid.h:63
IndexT HashCode() const
get a hash code (compatible with Util::HashTable)
Definition posixguid.cc:171
bool operator<=(const PosixGuid &rhs) const
less-or-equal operator
Definition posixguid.cc:70
Util::String AsString() const
get as string
Definition posixguid.cc:119
bool operator<(const PosixGuid &rhs) const
less-then operator
Definition posixguid.cc:60
bool IsValid() const
return true if the contained guid is valid (not NIL)
Definition posixguid.cc:100
#define n_assert(exp)
Definition debug.h:50
void Copy(const void *from, void *to, size_t numBytes)
Copy a chunk of memory (note the argument order is different from memcpy()!!!)
Definition osxmemory.cc:213
Posix implemention of a read-many write-few lock.
Definition posixsysfunc.cc:21
Nebula's universal string class.
Definition string.h:50
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48