25 #ifndef UQ_ONE_D_GRID_FUNCTION_H
26 #define UQ_ONE_D_GRID_FUNCTION_H
28 #include <queso/Environment.h>
58 virtual T
operator[] (
unsigned int i)
const = 0;
63 virtual unsigned int size ()
const = 0;
67 virtual unsigned int findIntervalId(
const T& paramValue)
const = 0;
71 void print (std::ostream& ofsvar)
const;
88 #endif // UQ_ONE_D_GRID_FUNCTION_H
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
virtual unsigned int findIntervalId(const T ¶mValue) const =0
Finds the ID of an interval. See template specialization.
friend std::ostream & operator<<(std::ostream &os, const BaseOneDGrid< T > &obj)
virtual T operator[](unsigned int i) const =0
Returns the position of the i-th point in the grid. See template specialization.
BaseOneDGrid(const BaseEnvironment &env, const char *prefix)
Default constructor.
Base class for accommodating one-dimensional grids.
const BaseEnvironment & m_env
virtual unsigned int size() const =0
Grid size; the amount of points which defines the grid. See template specialization.
virtual ~BaseOneDGrid()
Virtual destructor.
void print(std::ostream &ofsvar) const
Prints the values of the grid points.