Element Class Reference
A type used to define a element and its attributes. More...
#include <Element.hpp>
Classes | |
| struct | Attribs |
| The attributes of an Element object. More... | |
Public Member Functions | |
| Element () | |
| Construct a default Element object. | |
| Element (String symbol) | |
| Construct an Element object by looking up to the periodic table with given symbol. | |
| Element (const Attribs &attribs) | |
| Construct an Element object with given attributes. | |
| auto | clone () const -> Element |
| Return a deep copy of this Element object. | |
| 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 | withName (String name) const -> Element |
| Return a duplicate of this Element object with replaced name attribute. | |
| auto | withTags (const StringList &tags) const -> Element |
| Return a duplicate of this Element object with replaced tags attribute. | |
| auto | symbol () const -> String |
| Return the symbol of the element (e.g., "H", "O", "C", "Na"). | |
| auto | molarMass () const -> double |
| Return the molar mass of the element (in kg/mol). | |
| auto | name () const -> String |
| Return the name of the element (e.g., "Hydrogen", "Oxygen"). | |
| auto | tags () const -> const Strings & |
| Return the tags of the element. | |
Detailed Description
A type used to define a element and its attributes.
The documentation for this class was generated from the following file:
- Reaktoro/Core/Element.hpp