SurfaceList.hpp
111 auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void { m_surfaces.insert(pos, begin, end); }
A class for representing a list of strings with special constructors.
Definition: StringList.hpp:28
auto get(String const &name) const -> Surface const &
Return the surface with given name.
auto findWithName(String const &name) const -> Index
Return the index of the first surface with given unique name or the number of surfaces if not found.
auto empty() const -> bool
Return true if there are no surfaces in the collection.
SurfaceList(std::initializer_list< Surface > surfaces)
Construct an SurfaceList object with given surfaces.
auto end()
Return end iterator of this SurfaceList instance (for STL compatibility reasons).
Definition: SurfaceList.hpp:104
auto indexWithName(String const &name) const -> Index
Return the index of the first surface with given unique name or throw a runtime error if not found.
auto append(Surface const &surface) -> void
Append a new surface to the list of surfaces.
auto withNames(StringList const &names) const -> SurfaceList
Return all surfaces with given names.
auto data() const -> Vec< Surface > const &
Return the internal collection of Surface objects.
auto getWithName(String const &name) const -> Surface const &
Return the surface with given name or throw a runtime error if not found.
SurfaceList(Vec< Surface > const &surfaces)
Construct an SurfaceList object with given surfaces.
auto insert(Iterator pos, InputIterator begin, InputIterator end) -> void
Insert a container of Surface objects into this SurfaceList instance (for STL compatibility reasons).
Definition: SurfaceList.hpp:111
auto begin() const
Return begin const iterator of this SurfaceList instance (for STL compatibility reasons).
Definition: SurfaceList.hpp:95
auto begin()
Return begin iterator of this SurfaceList instance (for STL compatibility reasons).
Definition: SurfaceList.hpp:98
auto end() const
Return end const iterator of this SurfaceList instance (for STL compatibility reasons).
Definition: SurfaceList.hpp:101
auto push_back(Surface const &surfaces) -> void
Append a new Surface at the back of the container (for STL compatibility reasons).
Definition: SurfaceList.hpp:107
auto find(String const &name) const -> Index
Return the index of the first surface with given name or the number of surfaces if not found.
auto size() const -> Index
Return the number of surfaces in the collection.
auto index(String const &name) const -> Index
Return the index of the first surface with given name or throw a runtime error if not found.
Used to represent a surface across which chemical reactions take place.
Definition: Surface.hpp:31
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