UUID wrapper.
|
Public Member Functions |
|
| uuid_t () |
| | Default constructor - constructs a nil uuid.
|
|
| uuid_t (const COMET_GUID_BASE &u) |
| | Copy constructor.
|
|
uuid_t & | operator= (const COMET_GUID_BASE &u) |
| | Assignment operator.
|
|
void | clear () |
| | Set to nil uuid.
|
|
unsigned short | hash () const |
| | Returns hash of uuid.
|
|
bool | is_null () const throw () |
| | Returns true if and only if uuid is nil.
|
|
bool | operator! () const throw () |
| | Returns true if and only if uuid is nil.
|
|
template<typename C> void | copy_to_str (C s[]) const throw () |
| | Copy the uuid_t to a string/container.
|
|
template<typename C> bool | init_from_str (const C s[], size_t len) throw () |
| | Initialise the uuid_t from a string/container.
|
|
long | cmp (const comet::uuid_t &rhs) const |
| | Compare two guids.
|
|
bool | is_equal (const comet::uuid_t &rhs) const |
| | Compare two guids for equality.
|
|
| operator bool_tester * () const throw () |
|
|
| uuid_t (const std::string &s) |
|
| uuid_t (const char *s) |
|
| uuid_t (const std::wstring &s) |
|
| uuid_t (const wchar_t *s) |
|
| uuid_t (const bstr_t &bs) |
|
|
std::string | str () const |
| | Return a std::string version of the uuid.
|
|
std::string | s_str () const |
| | Return a std::string version of the uuid.
|
|
std::wstring | w_str () const |
| | Return a std::wstring version of the uuid.
|
|
tstring | t_str () const |
| | Return a tstring (templated to TCHAR) version of the uuid.
|
|
|
COMET_GUID_BASE * | out () |
|
COMET_GUID_BASE * | inout () |
|
COMET_GUID_BASE | in () const |
|
COMET_GUID_BASE * | in_ptr () const |
Static Public Member Functions |
|
uuid_t | create () |
| | Generate new guid.
|
|
const int * | uuid_table () |
|
const char * | hex_table () |
|
const char * | err_msg () |
|
int | parse_nibble (int c) |
|
const uuid_t & | create_const_reference (const COMET_GUID_BASE &x) |
| | Construct const reference to uuid from a raw GUID.
|
|
uuid_t & | create_reference (COMET_GUID_BASE &x) |
| | Construct reference to uuid from a raw GUID.
|
Friends |
|
| template<class E, class TR> std::basic_ostream< E, TR > & | operator<< (std::basic_ostream< E, TR > &os, const uuid_t &u) |
| | Output to an ostream.
|
| template<class E, class TR> std::basic_istream< E, TR > & | operator>> (std::basic_istream< E, TR > &is, uuid_t &u) |
| | Input from an ostream.
|
Related Functions |
(Note that these are not member functions.)
|
|
| bool | operator== (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator!= (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator== (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator!= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator== (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
| bool | operator!= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
| bool | operator< (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator< (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator< (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
| bool | operator>= (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator>= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator>= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
| bool | operator> (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator> (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator> (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
| bool | operator<= (const comet::uuid_t &lhs, const comet::uuid_t &rhs) |
| bool | operator<= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs) |
| bool | operator<= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs) |
UUID wrapper.