ElementList.hpp
131 auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void { m_elements.insert(pos, begin, end); }
auto push_back(const Element &elements) -> void
Append a new Element at the back of the container (for STL compatibility reasons).
Definition: ElementList.hpp:127
auto withoutTag(const String &tag) const -> ElementList
Return all elements without a given tag.
auto getWithName(const String &name) const -> const Element &
Return the element with given name.
auto findWithName(const String &name) const -> Index
Return the index of the first element with given unique name or the number of elements if not found.
auto data() const -> const Vec< Element > &
Return the internal collection of Element objects.
auto index(const String &symbol) const -> Index
Return the index of the first element with given symbol or throw a runtime error if not found.
auto withTags(const StringList &tags) const -> ElementList
Return all elements with given tags.
auto empty() const -> bool
Return true if there are no elements in the collection.
auto withTag(const String &tag) const -> ElementList
Return all elements with a given tag.
ElementList(std::initializer_list< Element > elements)
Construct an ElementList object with given elements.
auto find(const String &symbol) const -> Index
Return the index of the first element with given symbol or the number of elements if not found.
auto findWithSymbol(const String &symbol) const -> Index
Return the index of the first element with given symbol or the number of elements if not found.
auto indexWithName(const String &name) const -> Index
Return the index of the first element with given unique name or throw a runtime error if not found.
auto end()
Return end iterator of this ElementList instance (for STL compatibility reasons).
Definition: ElementList.hpp:124
auto withoutTags(const StringList &tags) const -> ElementList
Return all elements without given tags.
auto withNames(const StringList &names) const -> ElementList
Return all elements with given names.
auto indexWithSymbol(const String &symbol) const -> Index
Return the index of the first element with given symbol or throw a runtime error if not found.
ElementList(const Vec< Element > &elements)
Construct an ElementList object with given elements.
auto append(const Element &element) -> void
Append a new element to the list of elements.
auto get(const String &symbol) const -> const Element &
Return the element with given symbol.
auto getWithSymbol(const String &symbol) const -> const Element &
Return the element with given symbol.
auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void
Insert a container of Element objects into this ElementList instance (for STL compatibility reasons).
Definition: ElementList.hpp:131
auto begin() const
Return begin const iterator of this ElementList instance (for STL compatibility reasons).
Definition: ElementList.hpp:115
auto begin()
Return begin iterator of this ElementList instance (for STL compatibility reasons).
Definition: ElementList.hpp:118
auto withSymbols(const StringList &symbols) const -> ElementList
Return all elements with given symbols.
auto end() const
Return end const iterator of this ElementList instance (for STL compatibility reasons).
Definition: ElementList.hpp:121
auto size() const -> Index
Return the number of elements in the collection.
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
auto operator+(const typename Derived::Scalar &scalar, const Eigen::MatrixBase< Derived > &mat) -> decltype((scalar+mat.array()).matrix())
Return the component-wise division of two matrices.
Definition: Matrix.hpp:774