maliput
|
Represents an unique identifier.
Uniqueness is not guaranteed by this class. ID providers will be responsible of guaranteeing uniqueness across the specified domain.
#include <include/maliput/api/unique_id.h>
Public Member Functions | |
MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN (UniqueId) | |
UniqueId (const std::string &string) | |
Constructs a UniqueId from the given string . More... | |
const std::string & | string () const |
Returns the string representation of the UniqueId. More... | |
bool | operator== (const UniqueId &rhs) const |
Tests for equality with another UniqueId. More... | |
bool | operator!= (const UniqueId &rhs) const |
Tests for inequality with another UniqueId, specifically returning the opposite of operator==(). More... | |
Friends | |
template<class HashAlgorithm > | |
void | hash_append (HashAlgorithm &hasher, const UniqueId &item) noexcept |
Implements the hash_append concept. More... | |
|
explicit |
Constructs a UniqueId from the given string
.
maliput::common::assertion_error | if string is empty. |
MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN | ( | UniqueId | ) |
bool operator!= | ( | const UniqueId & | rhs | ) | const |
Tests for inequality with another UniqueId, specifically returning the opposite of operator==().
const std::string& string | ( | ) | const |
Returns the string representation of the UniqueId.
|
friend |
Implements the hash_append concept.