Class Scine::Utils::UniqueIdentifier

class UniqueIdentifier

Class for a unique identifier (handle).

It can f.i. be used to identify an instance unequivocally. Uses pimpl idiom to hide boost::uuid dependency.

Public Functions

UniqueIdentifier()

Default Constructor.

~UniqueIdentifier()

Default Destructor.

UniqueIdentifier(const UniqueIdentifier&)

Constructor that takes in a unique ID as a const reference.

UniqueIdentifier(UniqueIdentifier&&)

Constructor that takes in a unique ID as an rvalue reference.

UniqueIdentifier &operator=(const UniqueIdentifier&)

Assignment operator.

UniqueIdentifier &operator=(UniqueIdentifier&&)

Assignment operator.

std::string getStringRepresentation() const

Return a string representation of the unique identifier.

bool operator==(const UniqueIdentifier &rhs) const

Implementation of the “equal” operator.

bool operator!=(const UniqueIdentifier &rhs) const

Implementation of the “not equal” operator.

bool operator<(const UniqueIdentifier &rhs) const

Implementation of the “smaller than” operator.