ValueCache.h Source File#
ValueCache.h
Go to the documentation of this file.
CachedScalar getScalar(int id)
Get a reference to a CachedValue object representing a scalar (double) with the given id.
Definition ValueCache.h:161
CachedArray getArray(int id)
Get a reference to a CachedValue object representing an array (vector<double>) with the given id.
Definition ValueCache.h:167
static int m_last_id
The last assigned id. Automatically incremented by the getId() method.
Definition ValueCache.h:185
map< int, CachedValue< vector< double > > > m_arrayCache
Cached array values.
Definition ValueCache.h:182
This file contains definitions of constants, types and terms that are used in internal routines and a...
A cached property value and the state at which it was evaluated.
Definition ValueCache.h:33
double state2
Value of the second state variable for the state at which value was evaluated, for example density or...
Definition ValueCache.h:106
bool validate(double state1New, double state2New)
Check whether the currently cached value is valid based on state1 and state2.
Definition ValueCache.h:51
bool validate(double state1New, int stateNumNew)
Check whether the currently cached value is valid based on state1 and stateNum.
Definition ValueCache.h:64
bool validate(double state1New, double state2New, int stateNumNew)
Check whether the currently cached value is valid based on state1, state2, and stateNum.
Definition ValueCache.h:89
bool validate(double state1New)
Check whether the currently cached value is valid based on a single state variable.
Definition ValueCache.h:39
double state1
Value of the first state variable for the state at which value was evaluated, for example temperature...
Definition ValueCache.h:102
bool validate(int stateNumNew)
Check whether the currently cached value is valid based on stateNum.
Definition ValueCache.h:77
Generated by