#include <comstl/util/guid.hpp>
Public Types | |
Types | |
typedef guid | class_type |
typedef GUID const & | resource_type |
Public Member Functions | |
Construction | |
guid () | |
Constructs with a new, unique, GUID value. | |
guid (char const *s) | |
Constructs with a GUID value equivalent to the given ANSI string. | |
guid (wchar_t const *s) | |
Constructs with a GUID value equivalent to the given Unicode string. | |
guid (GUID const &g) | |
Copy constructs from the given GUID. | |
guid (class_type const &rhs) | |
Copy constructor. | |
guid & | operator= (class_type const &rhs) |
Copies the given instance. | |
guid & | operator= (char const *s) |
Assigns to a GUID value equivalent to the given string. | |
guid & | operator= (wchar_t const *s) |
Assigns to a GUID value equivalent to the given string. | |
guid & | operator= (GUID const &g) |
Copies the given GUID value. | |
Accessors | |
GUID const & | get () const |
Comparison | |
bool | equal (class_type const &rhs) const |
Evaluates whether the value is equivalent to the given argument. | |
bool | equal (GUID const &rhs) const |
Evaluates whether the value is equivalent to the given argument. | |
Operations | |
void | swap (class_type &rhs) throw () |
Swaps the contents with the given instance. |
guid | ( | ) |
Constructs with a new, unique, GUID value.
guid | ( | char const * | s | ) | [explicit] |
Constructs with a GUID value equivalent to the given ANSI string.
s | The string form of the desired GUID |
guid g("{00000303-0000-0000-C000-000000000046}");
guid | ( | wchar_t const * | s | ) | [explicit] |
Constructs with a GUID value equivalent to the given Unicode string.
s | The string form of the desired GUID |
guid g(L"{00000303-0000-0000-C000-000000000046}");
guid | ( | GUID const & | g | ) | [explicit] |
Copy constructs from the given GUID.
guid | ( | class_type const & | rhs | ) |
Copy constructor.
guid& operator= | ( | class_type const & | rhs | ) |
Copies the given instance.
guid& operator= | ( | char const * | s | ) |
Assigns to a GUID value equivalent to the given string.
s | The string form of the desired GUID |
guid g; g = "{00000303-0000-0000-C000-000000000046}";
guid& operator= | ( | wchar_t const * | s | ) |
Assigns to a GUID value equivalent to the given string.
s | The string form of the desired GUID |
guid g; g = L"{00000303-0000-0000-C000-000000000046}";
guid& operator= | ( | GUID const & | g | ) |
Copies the given GUID value.
bool equal | ( | class_type const & | rhs | ) | const |
Evaluates whether the value is equivalent to the given argument.
bool equal | ( | GUID const & | rhs | ) | const |
Evaluates whether the value is equivalent to the given argument.
void swap | ( | class_type & | rhs | ) | throw () |
Swaps the contents with the given instance.