30 return Record(
"Substance",
"Chemical substance.")
48 name_ = in_rec.
val<std::string>(
"name");
60 substances_ = boost::make_shared<std::vector<Substance> >();
61 names_ = boost::make_shared<std::vector<std::string> >();
66 (*substances_).push_back(s);
67 (*names_).push_back(s.
name());
80 substances_ = boost::make_shared<std::vector<Substance> >();
81 names_ = boost::make_shared<std::vector<std::string> >(names);
84 (*substances_).resize(names.size());
85 for (
unsigned int i=0; i<names.size(); ++i) (*substances_)[i].name_ = names[i];
Substance()
Default constructor.
boost::shared_ptr< std::vector< Substance > > substances_
The actual list of substances.
void initialize(const Input::Array &in_array)
Read from input array.
static const Input::Type::Record & get_input_type()
Input type for a substance.
boost::shared_ptr< std::vector< std::string > > names_
Auxiliary list of substance names used in some classes.
std::string name_
Name of a chemical substance.
double molar_mass_
Molar mass [kg/mol] of the substance.
Classes for storing substance data.
std::string name() const
Getter for substance name.