|
votca 2025.1-dev
|
Information about Identity. More...
#include <identity.h>

Public Member Functions | |
| Identity () | |
| Constructor. | |
| Identity (const T &id) | |
| Constructor that takes initial id. | |
| const T & | getId () const |
| Gets the id returns error of the id has not been set. | |
| void | setId (const T &id) |
| Set the id. | |
Private Attributes | |
| T | id_ |
| bool | id_set_ |
Information about Identity.
The identity object is meant to provide functionality for storing the id of an object it primariy meant to be used in child classes and provides a more safety than other implementations.
Definition at line 36 of file identity.h.
|
inline |
Constructor.
Definition at line 43 of file identity.h.
|
inline |
Constructor that takes initial id.
Definition at line 45 of file identity.h.
|
inline |
Gets the id returns error of the id has not been set.
Definition at line 47 of file identity.h.
|
inline |
Set the id.
Definition at line 52 of file identity.h.
|
private |
Definition at line 38 of file identity.h.
|
private |
Definition at line 39 of file identity.h.