This class describes a universally unique identifier (UUID). More...
Constructors and destructors | |
SBCContainerUUID (const std::string &u) | |
Constructs a UUID from a std::string. | |
SBCContainerUUID (const SBCContainerUUID &u) | |
Copy constructor. | |
SBCContainerUUID (SBCContainerUUID &&u) | |
Move constructor. | |
SBCContainerUUID () | |
Constructs an invalid UUID. | |
virtual | ~SBCContainerUUID () |
Destructs the UUID. | |
Operators | |
SBCContainerUUID & | operator= (const SBCContainerUUID &u) |
Copy assignment operator. | |
SBCContainerUUID & | operator= (SBCContainerUUID &&u) |
Move assignment operator. | |
bool | operator== (const SBCContainerUUID &u) const |
Equality operator. | |
bool | operator!= (const SBCContainerUUID &u) const |
Non-equality operator. | |
bool | operator< (const SBCContainerUUID &u) const |
Lexicographic comparison with another UUID. | |
std::string | operator() () const |
Returns the UUID in string format | |
SBCContainerUUID & | operator++ () |
Prefix increment operator. | |
SBCContainerUUID | operator++ (int) |
Postfix increment operator. | |
SBCContainerUUID & | operator-- () |
Prefix decrement operator. | |
SBCContainerUUID | operator-- (int) |
Postfix decrement operator. | |
Validity | |
bool | isValid () const |
Returns true if and only if the UUID is valid. | |
SBCContainerUUID objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Extensions. In many cases, UUIDs are automatically generated thanks to the SAMSON Extension generator.
UUIDs may be used e.g. to retrieve class proxies:
When necessary, SBRandom can be used to generate UUIDs :
Short name: SBUUID