iv::DVarIdT< Type > Class Template Reference
#include <DVarId.hpp>
Public Member Functions | |
DVarIdT (DVarId const &id, Type initial) | |
Type | initial () |
Public Member Functions inherited from iv::RuntimeId< DVarId > | |
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== (DVarId const &other) const |
bool | operator!= (DVarId const &other) const |
bool | operator< (DVarId 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from iv::RuntimeId< DVarId > | |
static DVarId | 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... | |
Static Public Attributes inherited from iv::DVarId | |
static constexpr char | TypeName [] = "DVarId" |
static RuntimeIdDictionary | Dictionary |
Static Public Attributes inherited from iv::RuntimeId< DVarId > | |
static constexpr char | TypeName [] |
Detailed Description
template<class Type>
class iv::DVarIdT< Type >
Definition at line 17 of file DVarId.hpp.
Constructor & Destructor Documentation
◆ DVarIdT()
template<class Type >
|
inlineexplicit |
Definition at line 21 of file DVarId.hpp.
Member Function Documentation
◆ initial()
template<class Type >
|
inline |
Definition at line 23 of file DVarId.hpp.
The documentation for this class was generated from the following file:
- ivorium_systems/DVarSystem/DVarId.hpp