Reaktoro  v2.0.0
A unified framework for modeling chemically reactive systems

A type used store a collection of substances and their critical properties. More...

#include <CriticalProps.hpp>

Public Member Functions

 CriticalProps (const CriticalProps &)=delete
 Construct a copy of a CriticalProps object [deleted].
 
auto operator= (const CriticalProps &) -> CriticalProps &=delete
 Assign a CriticalProps object to this [deleted].
 
auto begin () const
 Return begin const iterator of this ChemicalProps instance.
 
auto begin ()
 Return begin iterator of this ChemicalProps instance.
 
auto end () const
 Return end const iterator of this ChemicalProps instance.
 
auto end ()
 Return end iterator of this ChemicalProps instance.
 

Static Public Member Functions

static auto instance () -> CriticalProps &
 Return the single CriticalProps object.
 
static auto data () -> const std::deque< SubstanceCriticalProps > &
 Return the critical properties data in the database.
 
static auto defaultCriticalProps () -> const Optional< SubstanceCriticalProps > &
 Return the default critical properties used for missing substances in the database.
 
static auto append (SubstanceCriticalProps crprops) -> void
 Append critical properties for a substance in the database.
 
static auto overwrite (SubstanceCriticalProps crprops) -> void
 Append critical properties for a substance in the database or overwrite if data already exists for the same substance.
 
static auto setMissingAs (const String &substance) -> void
 Set a given existing substance in the database as the default choice for missing substances when using get.
 
static auto size () -> Index
 Return the number of substances in the database.
 
static auto find (const String &substance) -> Index
 Return the index of a substance in the database or number of substances if not found.
 
static auto get (const String &substance) -> Optional< SubstanceCriticalProps >
 Return the substance and its critical properties with given name (e.g. "WATER", "CARBON-DIOXIDE", "HYDROGEN-SULFIDE", etc.).
 
static auto get (const StringList &substances) -> Optional< SubstanceCriticalProps >
 Return the substance and its critical properties with given alternative names.
 

Detailed Description

A type used store a collection of substances and their critical properties.


The documentation for this class was generated from the following file: