51 bool validate(
double state1New,
double state2New) {
64 bool validate(
double state1New,
int stateNumNew) {
89 bool validate(
double state1New,
double state2New,
int stateNumNew) {
102 double state1 = std::numeric_limits<double>::quiet_NaN();
106 double state2 = std::numeric_limits<double>::quiet_NaN();
Storage for cached values.
CachedScalar getScalar(int id)
Get a reference to a CachedValue object representing a scalar (double) with the given id.
CachedArray getArray(int id)
Get a reference to a CachedValue object representing an array (vector<double>) with the given id.
int getId()
Get a unique id for a cached value.
map< int, CachedValue< double > > m_scalarCache
Cached scalar values.
void clear()
Clear all cached values.
static int m_last_id
The last assigned id. Automatically incremented by the getId() method.
map< int, CachedValue< vector< double > > > m_arrayCache
Cached array values.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
A cached property value and the state at which it was evaluated.
double state2
Value of the second state variable for the state at which value was evaluated, for example density or...
bool validate(double state1New, double state2New)
Check whether the currently cached value is valid based on state1 and state2.
bool validate(double state1New, int stateNumNew)
Check whether the currently cached value is valid based on state1 and stateNum.
bool validate(double state1New, double state2New, int stateNumNew)
Check whether the currently cached value is valid based on state1, state2, and stateNum.
T value
The value of the cached property.
int stateNum
A surrogate for the composition.
bool validate(double state1New)
Check whether the currently cached value is valid based on a single state variable.
double state1
Value of the first state variable for the state at which value was evaluated, for example temperature...
bool validate(int stateNumNew)
Check whether the currently cached value is valid based on stateNum.