#include <unique-id.hpp>
cargo::ipc::UniqueID::UniqueID |
( |
| ) |
|
Default constructor.
Generates an empty ID.
void cargo::ipc::UniqueID::generate |
( |
| ) |
|
Generate new timestamp and UUID pair.
cargo::ipc::UniqueID::operator std::string |
( |
| ) |
const |
Casts current ID to string.
bool cargo::ipc::UniqueID::operator== |
( |
const UniqueID & |
other | ) |
const |
Compare two IDs.
- Parameters
-
other | Other ID to compare to. |
- Returns
- True if both timestamp and UUID are equal, false otherwise.
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const UniqueID & |
id |
|
) |
| |
|
friend |
Overloaded << operator for debugging purposes.
Used in ut-uid.cpp tests.
random UUID generated with libuuid
The documentation for this class was generated from the following files: