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 
BaseOneDGrid(const BaseEnvironment &env, const char *prefix)
Default constructor. 
 
virtual ~BaseOneDGrid()
Virtual destructor. 
 
virtual unsigned int size() const =0
Grid size; the amount of points which defines the grid. 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. 
 
const BaseEnvironment & m_env
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
void print(std::ostream &ofsvar) const 
Prints the values of the grid points. 
 
Base class for accommodating one-dimensional grids. 
 
virtual unsigned int findIntervalId(const T ¶mValue) const =0
Finds the ID of an interval. See template specialization.