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 collection of elements.
auto operator=(const Elements &) -> Elements &=delete
Assign a Elements object to this [deleted].
static auto replace(String const &existingSymbol, Element const &replacement) -> bool
Replace an existing element in the collection of elements with another. If given existing element is ...
static auto reset() -> void
Reset the elements in the collection of elements to its default state.
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:86
static auto size() -> std::size_t
Return the number of elements in the collection of elements.
static auto append(Element element) -> void
Append a custom element to the collection of elements.
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:77
auto begin()
Return begin iterator of this Elements instance.
Definition: Elements.hpp:80
static auto data() -> Vec< Element > const &
Return the elements in the collection of elements.
auto end() const
Return end const iterator of this Elements instance.
Definition: Elements.hpp:83
static auto withTags(StringList const &tags) -> Vec< Element >
Return the elements with given tags.
static auto clear() -> void
Clear the elements in the collection of elements.
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