ReactionList.hpp
111 auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void { m_reactions.insert(pos, begin, end); }
auto find(const String &name) const -> Index
Return the index of the reaction with given unique name or the number of reactions if not found.
auto findWithName(const String &name) const -> Index
Return the index of the reaction with given unique name or the number of reactions if not found.
auto withNames(const StringList &names) const -> ReactionList
Return all reactions with given names.
auto empty() const -> bool
Return true if there are no reactions in the collection.
auto indexWithName(const String &name) const -> Index
Return the index of the reaction with given unique name or throw a runtime error if not found.
auto getWithName(const String &name) const -> const Reaction &
Return the reaction with a given name.
auto end()
Return end iterator of this ReactionList instance (for STL compatibility reasons).
Definition: ReactionList.hpp:104
auto push_back(const Reaction &species) -> void
Append a new Reaction at the back of the container (for STL compatibility reasons).
Definition: ReactionList.hpp:107
ReactionList(const Vec< Reaction > &reactions)
Construct an ReactionList object with given reactions.
auto get(const String &name) const -> const Reaction &
Return the reaction with a given name.
auto append(const Reaction &reaction) -> void
Append a new reaction to the list of reaction.
auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void
Insert a container of Reaction objects into this ReactionList instance (for STL compatibility reasons...
Definition: ReactionList.hpp:111
auto begin() const
Return begin const iterator of this ReactionList instance (for STL compatibility reasons).
Definition: ReactionList.hpp:95
auto begin()
Return begin iterator of this ReactionList instance (for STL compatibility reasons).
Definition: ReactionList.hpp:98
auto end() const
Return end const iterator of this ReactionList instance (for STL compatibility reasons).
Definition: ReactionList.hpp:101
auto size() const -> Index
Return the number of reactions in the collection.
auto index(const String &name) const -> Index
Return the index of the reaction with given unique name or throw a runtime error if not found.
auto data() const -> const Vec< Reaction > &
Return the internal collection of Reaction objects.
ReactionList(std::initializer_list< Reaction > reactions)
Construct an ReactionList object with given reactions.
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