Class containing a pair of thermo references. Handles down-casting to more specific thermo types by constructing one pair from another (e.g., constructing a multicomponentThermo reference pair from a basicThermo pair). Tracks validity of the references. More...
Public Member Functions | |
ThermoRefPair (const objectRegistry &db, const Pair< word > &phaseNames) | |
Construct from a database and phase names. More... | |
template<class BasicThermoType > | |
ThermoRefPair (const ThermoRefPair< BasicThermoType > basicThermos) | |
Construct by casting a more primitive thermo type. More... | |
const Pair< bool > & | valid () const |
Access the validity flags. More... | |
const ThermoType & | first () const |
Access the first thermo. More... | |
const ThermoType & | second () const |
Access the second thermo. More... | |
const ThermoType & | operator[] (const label i) const |
Access a thermo by index. More... | |
Class containing a pair of thermo references. Handles down-casting to more specific thermo types by constructing one pair from another (e.g., constructing a multicomponentThermo reference pair from a basicThermo pair). Tracks validity of the references.
Definition at line 50 of file ThermoRefPair.H.
|
inline |
Construct from a database and phase names.
Definition at line 69 of file ThermoRefPair.H.
|
inline |
Construct by casting a more primitive thermo type.
Definition at line 102 of file ThermoRefPair.H.
|
inline |
Access the validity flags.
Definition at line 127 of file ThermoRefPair.H.
|
inline |
Access the first thermo.
Definition at line 133 of file ThermoRefPair.H.
Referenced by ThermoRefPair< ThermoType >::operator[]().
|
inline |
Access the second thermo.
Definition at line 139 of file ThermoRefPair.H.
Referenced by ThermoRefPair< ThermoType >::operator[]().
|
inline |
Access a thermo by index.
Definition at line 148 of file ThermoRefPair.H.
References ThermoRefPair< ThermoType >::first(), and ThermoRefPair< ThermoType >::second().