25#ifndef GRIDCONTAINER_GRIDAXIS_H
26#define GRIDCONTAINER_GRIDAXIS_H
32namespace GridContainer {
Provides information related with an axis of a GridContainer.
const_iterator begin() const
Returns an iterator at the first knot of the axis.
std::vector< T >::const_iterator const_iterator
The iterator type of the GridAxis.
GridAxis(std::string name, std::vector< T > values)
Constructs an GridAxis with the given name and knot values.
std::vector< T > m_values
const_iterator infimum(const T &value) const
size_t size() const
Returns the number of knots of the axis.
virtual ~GridAxis()=default
Default destructor.
const std::string & name() const
Returns the name of the axis.
T data_type
The type of the axis values.
bool operator==(const GridAxis< U > &other) const
Compares the axis with another axis.
bool operator!=(const GridAxis< U > &other) const
The opposite of the == operator.
const_iterator end() const
Returns an iterator after the last knot of the axis.
const T & operator[](size_t index) const
Returns the value of the knot with the given index.