Elements Class Reference
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 collection of elements. | |
| static auto | elements () -> Vec< Element > const & |
| Return the elements in the collection of elements. | |
| static auto | clear () -> void |
| Clear the elements in the collection of elements. | |
| static auto | reset () -> void |
| Reset the elements in the collection of elements to its default state. | |
| static auto | append (Element element) -> void |
| Append a custom element to the collection of elements. | |
| 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 not present in the collection, this method returns false. | |
| static auto | size () -> std::size_t |
| Return the number of elements in the collection of elements. | |
| 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:
- Reaktoro/Singletons/Elements.hpp