87 unsigned int size()
const {
return substances_->size(); }
95 std::shared_ptr<std::vector<std::string> >
names_;
105 #endif // SUBSTANCE_HH_
Substance()
Default constructor.
const std::vector< std::string > & names()
static const Input::Type::Record & get_input_type()
Input type for a substance.
const Substance & operator[](unsigned int index)
unsigned int size() const
double molar_mass() const
Getter for molar mass.
std::string name_
Name of a chemical substance.
double molar_mass_
Molar mass [kg/mol] of the substance.
std::shared_ptr< std::vector< std::string > > names_
Auxiliary list of substance names used in some classes.
std::shared_ptr< std::vector< Substance > > substances_
The actual list of substances.
std::string name() const
Getter for substance name.