Alexandria
2.16
Please provide a description of the project.
|
Go to the documentation of this file.
25 #ifndef GRIDCONTAINER_GRIDAXIS_H
26 #define GRIDCONTAINER_GRIDAXIS_H
32 namespace GridContainer {
T data_type
The type of the axis values.
bool operator==(const GridAxis< U > &other) const
Compares the axis with another axis.
Provides information related with an axis of a GridContainer.
size_t size() const
Returns the number of knots of the axis.
std::vector< T > m_values
const_iterator begin() const
Returns an iterator at the first knot of the axis.
bool operator!=(const GridAxis< U > &other) const
The opposite of the == operator.
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 T & operator[](size_t index) const
Returns the value of the knot with the given index.
virtual ~GridAxis()=default
Default destructor.
const_iterator end() const
Returns an iterator after the last knot of the axis.
std::vector< T >::const_iterator const_iterator
The iterator type of the GridAxis.