35 #ifndef ThermoRefPair_H
36 #define ThermoRefPair_H
50 template<
class ThermoType>
59 const ThermoType& first_;
62 const ThermoType& second_;
79 db.lookupObject<ThermoType>
90 db.lookupObject<ThermoType>
102 template<
class BasicThermoType>
107 isA<ThermoType>(basicThermos.
first()),
134 const ThermoType&
first()
const
140 const ThermoType&
second()
const
154 : NullObjectRef<ThermoType>();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class containing a pair of thermo references. Handles down-casting to more specific thermo types by c...
const ThermoType & second() const
Access the second thermo.
ThermoRefPair(const objectRegistry &db, const Pair< word > &phaseNames)
Construct from a database and phase names.
const Pair< bool > & valid() const
Access the validity flags.
const ThermoType & operator[](const label i) const
Access a thermo by index.
const ThermoType & first() const
Access the first thermo.
Registry of regIOobjects.
A base class for physical properties.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
To & refCast(From &r)
Reference type cast template function.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
const T & NullObjectRef()
Return const reference to the nullObject of type T.