Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems

A type used store a collection of elements. More...

#include <Elements.hpp>

Public Member Functions

 Elements (const Elements &)=delete
 Construct a copy of a Elements object [deleted].
 
auto operator= (const Elements &) -> Elements &=delete
 Assign a Elements object to this [deleted].
 
auto begin () const
 Return begin const iterator of this Elements instance.
 
auto begin ()
 Return begin iterator of this Elements instance.
 
auto end () const
 Return end const iterator of this Elements instance.
 
auto end ()
 Return end iterator of this Elements instance.
 

Static Public Member Functions

static auto instance () -> Elements &
 Return the single Elements object.
 
static auto data () -> Vec< Element > const &
 Return the elements in the periodic table.
 
static auto elements () -> Vec< Element > const &
 Return the elements in the periodic table.
 
static auto append (Element element) -> void
 Append a custom element to the periodic table.
 
static auto size () -> std::size_t
 Return the number of elements in the periodic table.
 
static auto withSymbol (String symbol) -> Optional< Element >
 Return the element with given symbol.
 
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.
 
static auto withTags (StringList const &tags) -> Vec< Element >
 Return the elements with given tags.
 

Detailed Description

A type used store a collection of elements.

See also
Element

The documentation for this class was generated from the following file: