iv::TimeId Class Reference
#include <TimeId.hpp>
Static Public Attributes | |
static constexpr char | TypeName [] = "TimeId" |
static RuntimeIdDictionary | Dictionary |
Static Public Attributes inherited from iv::RuntimeId< TimeId > | |
static constexpr char | TypeName [] |
Additional Inherited Members | |
Public Member Functions inherited from iv::RuntimeId< TimeId > | |
RuntimeId () | |
RuntimeId (int runtime) | |
RuntimeId (const char *persistent) | |
No warning if conversion fails. More... | |
RuntimeId (const char *persistent, Context *context) | |
Emmits warning if conversion fails. More... | |
bool | operator== (TimeId const &other) const |
bool | operator!= (TimeId const &other) const |
bool | operator< (TimeId const &other) const |
int | runtime_value () const |
std::string | persistent_value () const |
bool | valid () const |
Same result as comparing it to default value, eg myid != MyRuntimeId() . More... | |
Static Public Member Functions inherited from iv::RuntimeId< TimeId > | |
static TimeId | create (const char *persistent_name) |
If RuntimeId was already locked, this will emmit runtime_warning. More... | |
static void | lock () |
This tells us that something used ids_count for something that will not be changed, so that functionality of newer ids might be incomplete. Creating new ids after locking the RuntimeId will emmit runtime_warning. More... | |
static size_t | ids_count () |
How many ids exist, including invalid id 0. Min id is ids_count - 1. All ids between 0 and ids_count are valid ids. More... | |
Detailed Description
Definition at line 8 of file TimeId.hpp.
Member Data Documentation
◆ TypeName
|
staticconstexpr |
Definition at line 11 of file TimeId.hpp.
◆ Dictionary
|
static |
Definition at line 12 of file TimeId.hpp.
The documentation for this class was generated from the following files:
- ivorium_systems/TimeSystem/TimeId.hpp
- ivorium_systems/TimeSystem/TimeId.cpp