feisty meow concerns codebase
2.140
|
Provides an abstraction for the responsibilities of a unique identifier. More...
#include <unique_id.h>
Public Member Functions | |
unique_id (uniquifier initial_value) | |
Constructs a unique id from the "initial_value". More... | |
unique_id (const unique_id< uniquifier > &to_copy) | |
Constructs a unique id as a copy of the "to_copy" object. More... | |
~unique_id () | |
virtual bool | equal_to (const equalizable &to_compare) const |
bool | operator== (const unique_id< uniquifier > &to_compare) const |
Returns true if the held id is the same as "to_compare". More... | |
unique_id & | operator= (const unique_id< uniquifier > &to_copy) |
Sets this id to be the same as "to_copy". More... | |
uniquifier | raw_id () const |
Returns the held identifier in its native form. More... | |
void | set_raw_id (uniquifier new_value) |
Sets the held identifier to "new_value". More... | |
Public Member Functions inherited from basis::equalizable | |
virtual bool | equal_to (const equalizable &s2) const =0 |
virtual bool | operator== (const equalizable &s2) const |
the virtual method for object equality. More... | |
Provides an abstraction for the responsibilities of a unique identifier.
These are generally used as a way of masking the underlying ID object while providing some equality comparisons. It is especially useful when the underlying object is not itself an object, but just a simple type.
Definition at line 30 of file unique_id.h.
|
inline |
Constructs a unique id from the "initial_value".
Definition at line 33 of file unique_id.h.
|
inline |
Constructs a unique id as a copy of the "to_copy" object.
Definition at line 36 of file unique_id.h.
|
inline |
Definition at line 39 of file unique_id.h.
|
inlinevirtual |
Definition at line 41 of file unique_id.h.
|
inline |
Sets this id to be the same as "to_copy".
Definition at line 54 of file unique_id.h.
|
inline |
Returns true if the held id is the same as "to_compare".
The templated uniquifying type absolutely must provide an equality operator (==) and an assignment operator (=).
Definition at line 50 of file unique_id.h.
|
inline |
Returns the held identifier in its native form.
Definition at line 57 of file unique_id.h.
Referenced by processes::post_office::deliver_mail_on_route(), and structures::orderable_unique_id< uniquifier >::operator<().
|
inline |
Sets the held identifier to "new_value".
Definition at line 60 of file unique_id.h.