25 #include <queso/StdOneDGrid.h>
33 const std::vector<T>& points)
60 return m_points.size();
67 queso_require_less_msg(i, m_points.size(),
"too large i");
76 queso_require_msg(!((paramValue < m_points[0]) || (m_points[m_points.size()-1] < paramValue)),
"paramValue is out of domain");
78 unsigned int iMax = m_points.size();
80 for (i = 1; i < iMax; ++i) {
81 if (paramValue < m_points[i]) {
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Base class for accommodating one-dimensional grids.
const BaseEnvironment & m_env
StdOneDGrid(const BaseEnvironment &env, const char *prefix, const std::vector< T > &points)
Default constructor.
T operator[](unsigned int i) const
Returns the position of the i-th point in the grid.
unsigned int findIntervalId(const T ¶mValue) const
Finds the ID of an interval. See template specialization.
unsigned int displayVerbosity() const
unsigned int size() const
Grid size; the amount of points which defines the grid.
~StdOneDGrid()
Destructor.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).