SpeciesList.hpp
194 auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void { m_species.insert(pos, begin, end); }
A type used to represent the chemical formula of a chemical species.
Definition: ChemicalFormula.hpp:27
auto withTag(String tag) const -> SpeciesList
Return all species with a given tag.
SpeciesList(InputIterator begin, InputIterator end)
Construct an SpeciesList object with given begin and end iterators.
Definition: SpeciesList.hpp:175
auto push_back(const Species &species) -> void
Append a new Species at the back of the container (for STL compatibility reasons).
Definition: SpeciesList.hpp:190
auto elements() const -> ElementList
Return the elements that compose the species in the collection sorted in ascending order of molar mas...
auto indexWithSubstance(const String &substance) const -> Index
Return the index of the first species with given substance name or throw a runtime error if not found...
auto getWithSubstance(const String substance) const -> const Species &
Return the species with a given substance name.
auto withElements(const StringList &symbols) const -> SpeciesList
Return all species with a certain elemental composition.
auto find(const String &name) const -> Index
Return the index of the first species with given unique name or the number of species if not found.
auto withSubstances(const StringList &substances) const -> SpeciesList
Return all species with given substance names.
auto withoutTag(String tag) const -> SpeciesList
Return all species without a given tag.
auto findWithName(const String &name) const -> Index
Return the index of the first species with given unique name or the number of species if not found.
auto indexWithFormula(const ChemicalFormula &formula) const -> Index
Return the index of the first species with equivalent formula or throw a runtime error if not found.
auto empty() const -> bool
Return true if there are no species in the collection.
auto withAggregateState(AggregateState state) const -> SpeciesList
Return all species with a given aggregate state.
auto getWithFormula(const ChemicalFormula &formula) const -> const Species &
Return the species with a given formula.
SpeciesList(std::initializer_list< Species > species)
Construct an SpeciesList object with given species.
auto front() const -> Species const &
Return the species at the front of the collection.
Definition: SpeciesList.hpp:89
auto indexWithName(const String &name) const -> Index
Return the index of the species with given unique name or throw a runtime error if not found.
auto data() const -> const Vec< Species > &
Return the internal collection of Species objects.
auto withNames(const StringList &names) const -> SpeciesList
Return all species with given names.
auto withElementsOf(const StringList &formulas) const -> SpeciesList
Return all species with a certain elemental composition.
auto findWithSubstance(const String &substance) const -> Index
Return the index of the first species with given substance name or the number of species if not found...
auto end()
Return end iterator of this SpeciesList instance (for STL compatibility reasons).
Definition: SpeciesList.hpp:187
auto get(const String &name) const -> const Species &
Return the species with a given name.
SpeciesList(const Vec< Species > &species)
Construct an SpeciesList object with given species.
auto withoutTags(const StringList &tags) const -> SpeciesList
Return all species without given tags.
auto append(const Species &species) -> void
Append a new species to the list of species.
auto findWithFormula(const ChemicalFormula &formula) const -> Index
Return the index of the first species with equivalent formula or the number of species if not found.
auto withCharge(real value) const -> SpeciesList
Return all species with a given charge.
auto withTags(const StringList &tags) const -> SpeciesList
Return all species with given tags.
auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void
Insert a container of Species objects into this SpeciesList instance (for STL compatibility reasons).
Definition: SpeciesList.hpp:194
auto begin() const
Return begin const iterator of this SpeciesList instance (for STL compatibility reasons).
Definition: SpeciesList.hpp:178
auto begin()
Return begin iterator of this SpeciesList instance (for STL compatibility reasons).
Definition: SpeciesList.hpp:181
SpeciesList(const StringList &formulas)
Construct an SpeciesList object with given species formulas.
auto withFormulas(const StringList &formulas) const -> SpeciesList
Return all species with given substance formulas.
auto getWithName(const String &name) const -> const Species &
Return the species with a given name.
auto end() const
Return end const iterator of this SpeciesList instance (for STL compatibility reasons).
Definition: SpeciesList.hpp:184
auto size() const -> Index
Return the number of species in the collection.
auto index(const String &name) const -> Index
Return the index of the first species with given unique name or throw a runtime error if not found.
auto back() const -> Species const &
Return the species at the back of the collection.
Definition: SpeciesList.hpp:92
A type used to represent a chemical species and its attributes.
Definition: Species.hpp:35
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
AggregateState
The aggregate states of substances according to IUPAC.
Definition: AggregateState.hpp:32
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
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