25 #include <queso/StdOneDGrid.h>
33 const std::vector<T>& points)
60 return m_points.size();
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]) {
unsigned int displayVerbosity() const
unsigned int size() const
Grid size; the amount of points which defines the grid.
const BaseEnvironment & m_env
#define queso_require_msg(asserted, msg)
StdOneDGrid(const BaseEnvironment &env, const char *prefix, const std::vector< T > &points)
Default constructor.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
#define queso_require_less_msg(expr1, expr2, msg)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Base class for accommodating one-dimensional grids.
unsigned int findIntervalId(const T ¶mValue) const
Finds the ID of an interval. See template specialization.
~StdOneDGrid()
Destructor.
T operator[](unsigned int i) const
Returns the position of the i-th point in the grid.