1 #ifndef DISCRETEBOUNDEDSPACE_H
2 #define DISCRETEBOUNDEDSPACE_H
22 virtual V getVector(std::vector<size_space> coordinates)
const = 0;
27 virtual std::vector<size_space>
getCoordinates(
V const & vector)
const = 0;
37 virtual size_space
n()
const = 0;
50 virtual VectorType
origin()
const = 0;
virtual size_space n() const =0
Number of discrete coordinates per dimension.
virtual V getVector(std::vector< size_space > coordinates) const =0
Returns the vector represented by the given coordinates.
virtual DiscreteBoundedSpace< V, size_space > * clone() const =0
Interface to extend a template type to provide discrete (bounded) space {0, ..., n-1}^d features...
virtual size_space uBound() const
Upper bound = n-1.
virtual size_t dimension() const =0
Space dimension.
virtual std::vector< size_space > getCoordinates(V const &vector) const =0
Returns the coordinates of the given vector.
virtual VectorType origin() const =0
Returns the space's origin.