PhaseList.hpp
162 auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void { m_phases.insert(pos, begin, end); }
auto indicesSpeciesInPhases(const Indices &iphases) const -> Indices
Return the indices of the species in the given phases.
auto getWithName(const String &name) const -> const Phase &
Return the phase with a given name.
auto numSpeciesUntilPhase(Index iphase) const -> Index
Return the number of species over all phases up to the one with given index.
auto find(const String &name) const -> Index
Return the index of the phase with given unique name or the number of phases if not found.
auto indexWithSpecies(Index index) const -> Index
Return the index of the phase containing the species with given index or throw a runtime error if not...
auto indexWithStateOfMatter(StateOfMatter option) const -> Index
Return the index of the first phase with given state of matter or throw a runtime error if not found.
auto push_back(const Phase &species) -> void
Append a new Phase at the back of the container (for STL compatibility reasons).
Definition: PhaseList.hpp:158
auto findWithName(const String &name) const -> Index
Return the index of the phase with given unique name or the number of phases if not found.
auto withStateOfMatter(StateOfMatter option) const -> PhaseList
Return all phases with given state of matter.
auto empty() const -> bool
Return true if there are no phases in the collection.
auto findWithSpecies(Index index) const -> Index
Return the index of the phase containing the species with given index or number of phases if not foun...
auto findWithAggregateState(AggregateState option) const -> Index
Return the index of the first phase with given aggregate state of species or the number of phases if ...
auto indicesSpeciesInPurePhases() const -> Indices
Return the indices of the species in phases with a single species.
auto indexWithName(const String &name) const -> Index
Return the index of the phase with given unique name or throw a runtime error if not found.
auto withNames(const StringList &names) const -> PhaseList
Return all phases with given names.
auto end()
Return end iterator of this PhaseList instance (for STL compatibility reasons).
Definition: PhaseList.hpp:155
auto species() const -> SpeciesList
Return the species that compose the phases in the collection.
auto get(const String &name) const -> const Phase &
Return the phase with a given name.
PhaseList(std::initializer_list< Phase > phases)
Construct an PhaseList object with given phases.
auto indexWithAggregateState(AggregateState option) const -> Index
Return the index of the first phase with given aggregate state of species or throw a runtime error if...
auto append(const Phase &phase) -> void
Append a new phase to the list of phase.
auto data() const -> const Vec< Phase > &
Return the internal collection of Phase objects.
auto indicesPhasesArePure() const -> Indices
Return the indices of the phases with a single species.
auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void
Insert a container of Phase objects into this PhaseList instance (for STL compatibility reasons).
Definition: PhaseList.hpp:162
auto begin() const
Return begin const iterator of this PhaseList instance (for STL compatibility reasons).
Definition: PhaseList.hpp:146
auto indicesPhasesAreSolution() const -> Indices
Return the indices of the phases with more than one species.
auto begin()
Return begin iterator of this PhaseList instance (for STL compatibility reasons).
Definition: PhaseList.hpp:149
auto end() const
Return end const iterator of this PhaseList instance (for STL compatibility reasons).
Definition: PhaseList.hpp:152
auto withAggregateState(AggregateState option) const -> PhaseList
Return all phases whose species have the given aggregate state.
auto index(const String &name) const -> Index
Return the index of the phase with given unique name or throw a runtime error if not found.
auto indicesSpeciesInSolutionPhases() const -> Indices
Return the indices of the species in phases with more than one species.
auto findWithStateOfMatter(StateOfMatter option) const -> Index
Return the index of the first phase with given state of matter or the number of phases if not found.
PhaseList(const Vec< Phase > &phases)
Construct an PhaseList object with given phases.
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
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
std::vector< Index > Indices
Define a type that represents a collection of indices.
Definition: Index.hpp:29
StateOfMatter
The list of states of matter for phases.
Definition: StateOfMatter.hpp:27