COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Combination of a UUID and a count, together forming the equivalent of a 192-bit identifier. More...
#include <UUCount.hpp>
Public Member Functions | |
UUCount () | |
UUCount (const std::string &str) | |
Construct from a string, formatted as UUID:Count. Useful for deserialization. More... | |
std::string | string () const |
const boost::uuids::uuid & | uuid () const |
The UUID part. More... | |
Uint | count () const |
The count part. More... | |
bool | is_nil () const |
True if the UUID is nil and the count is 0. More... | |
bool | operator== (UUCount const &rhs) const |
bool | operator!= (UUCount const &rhs) const |
bool | operator< (UUCount const &rhs) const |
bool | operator> (UUCount const &rhs) const |
bool | operator<= (UUCount const &rhs) const |
bool | operator>= (UUCount const &rhs) const |
Private Attributes | |
boost::uuids::uuid | m_uuid |
Uint | m_count |
Combination of a UUID and a count, together forming the equivalent of a 192-bit identifier.
Definition at line 21 of file UUCount.hpp.
UUCount | ( | ) |
Default constructor. Repetitive calls to this constructer always generate UUCounts with the same UUID, unique for the process, but increment the counter each time
Definition at line 40 of file UUCount.cpp.
UUCount | ( | const std::string & | str | ) |
Construct from a string, formatted as UUID:Count. Useful for deserialization.
Definition at line 44 of file UUCount.cpp.
Uint count | ( | ) | const |
The count part.
Definition at line 91 of file UUCount.cpp.
bool is_nil | ( | ) | const |
True if the UUID is nil and the count is 0.
Definition at line 96 of file UUCount.cpp.
bool operator!= | ( | UUCount const & | rhs | ) | const |
Definition at line 102 of file UUCount.cpp.
bool operator< | ( | UUCount const & | rhs | ) | const |
Definition at line 112 of file UUCount.cpp.
bool operator<= | ( | UUCount const & | rhs | ) | const |
Definition at line 125 of file UUCount.cpp.
bool operator== | ( | UUCount const & | rhs | ) | const |
Definition at line 107 of file UUCount.cpp.
bool operator> | ( | UUCount const & | rhs | ) | const |
Definition at line 120 of file UUCount.cpp.
bool operator>= | ( | UUCount const & | rhs | ) | const |
Definition at line 130 of file UUCount.cpp.
std::string string | ( | ) | const |
String representation of the UUCount Format is UUID:Count
Definition at line 79 of file UUCount.cpp.
const boost::uuids::uuid & uuid | ( | ) | const |
The UUID part.
Definition at line 85 of file UUCount.cpp.
|
private |
Definition at line 53 of file UUCount.hpp.
|
private |
Definition at line 52 of file UUCount.hpp.
Send comments to: COOLFluiD Web Admin |