35 #ifndef ThermoRefPair_H
36 #define ThermoRefPair_H
50 template<
class ThermoType>
59 const ThermoType& first_;
62 const ThermoType& second_;
71 const ThermoType&
first,
79 template<
class OtherThermoType>
99 inline bool either()
const;
102 inline bool both()
const;
105 inline const ThermoType&
first()
const;
108 inline const ThermoType&
second()
const;
111 template<
class OtherThermoType>
115 template<
class OtherThermoType>
120 const word& thermoType
Class containing a pair of thermo references. Handles down-casting to more specific thermo types by c...
const Pair< bool > & valid() const
Access the validity flags.
const ThermoType & operator[](const label i) const
Access a thermo by index.
bool either() const
Return if either validity flag is set.
ThermoRefPair< OtherThermoType > thermos() const
Cast to a different thermo type, with error checking.
const ThermoType & first() const
Access the first thermo.
const ThermoType & second() const
Access the second thermo.
bool both() const
Return if both validity flags are set.
friend class ThermoRefPair
Declare friendship with other thermo reference pairs.
Finite volume model abstract base class.
Registry of regIOobjects.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.