28 namespace GridContainer {
32 : m_name(std::move(name)), m_values(std::move(values)) {
37 return m_values.size();
47 return m_values[index];
52 return m_values.cbegin();
57 return m_values.end();
64 if (this->size() == other.
size()) {
73 return !this->operator==(other);
bool operator!=(const GridAxis< U > &other) const
The opposite of the == operator.
bool operator==(const GridAxis< U > &other) const
Compares the axis with another axis.
Provides information related with an axis of a GridContainer.
const_iterator end() const
Returns an iterator after the last knot of the axis.
const std::string & name() const
Returns the name of the axis.
GridAxis(std::string name, std::vector< T > values)
Constructs an GridAxis with the given name and knot values.
const_iterator begin() const
Returns an iterator at the first knot of the axis.
size_t size() const
Returns the number of knots of the axis.
const T & operator[](size_t index) const
Returns the value of the knot with the given index.
std::vector< T >::const_iterator const_iterator
The iterator type of the GridAxis.