Elements.hpp
static auto withSymbol(String symbol) -> Optional< Element >
Return the element with given symbol.
static auto elements() -> Vec< Element > const &
Return the elements in the periodic table.
auto operator=(const Elements &) -> Elements &=delete
Assign a Elements object to this [deleted].
static auto withName(String name) -> Optional< Element >
Return the element with given name.
static auto withTag(String tag) -> Vec< Element >
Return the elements with a given tag.
auto end()
Return end iterator of this Elements instance.
Definition: Elements.hpp:77
static auto size() -> std::size_t
Return the number of elements in the periodic table.
static auto append(Element element) -> void
Append a custom element to the periodic table.
Elements(const Elements &)=delete
Construct a copy of a Elements object [deleted].
auto begin() const
Return begin const iterator of this Elements instance.
Definition: Elements.hpp:68
auto begin()
Return begin iterator of this Elements instance.
Definition: Elements.hpp:71
static auto data() -> Vec< Element > const &
Return the elements in the periodic table.
auto end() const
Return end const iterator of this Elements instance.
Definition: Elements.hpp:74
static auto withTags(StringList const &tags) -> Vec< Element >
Return the elements with given tags.
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::optional< T > Optional
Convenient alias for std::optional<T>.
Definition: Types.hpp:114