Element.hpp
Element(const Attribs &attribs)
Construct an Element object with given attributes.
Element(String symbol)
Construct an Element object by looking up to the periodic table with given symbol.
auto molarMass() const -> double
Return the molar mass of the element (in kg/mol).
auto withTags(const StringList &tags) const -> Element
Return a duplicate of this Element object with replaced tags attribute.
auto withSymbol(String symbol) const -> Element
Return a duplicate of this Element object with replaced symbol attribute.
auto withMolarMass(double value) const -> Element
Return a duplicate of this Element object with replaced molar mass attribute (in kg/mol).
auto name() const -> String
Return the name of the element (e.g., "Hydrogen", "Oxygen").
auto withName(String name) const -> Element
Return a duplicate of this Element object with replaced name attribute.
auto symbol() const -> String
Return the symbol of the element (e.g., "H", "O", "C", "Na").
A class for representing a list of strings with special constructors.
Definition: StringList.hpp:28
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
std::vector< std::string > Strings
Convenient alias for std::vector<String>.
Definition: Types.hpp:55
std::shared_ptr< T > SharedPtr
Convenient alias for std::shared_ptr<T>.
Definition: Types.hpp:106
String symbol
The symbol of the element (e.g., "H", "O", "C", "Na").
Definition: Element.hpp:35
double molar_mass
The molar mass of the element (in kg/mol).
Definition: Element.hpp:41
String name
The name of the element (e.g., "Hydrogen", "Oxygen").
Definition: Element.hpp:45