queso-0.57.1
|
Class for accommodating uniform one-dimensional grids. More...
#include <UniformOneDGrid.h>
Public Member Functions | |
Constructor/Destructor methods | |
UniformOneDGrid (const BaseEnvironment &env, const char *prefix, unsigned int size, T minPosition, T maxPosition) | |
Default constructor. More... | |
~UniformOneDGrid () | |
Destructor. More... | |
Accessor methods | |
T | operator[] (unsigned int i) const |
Returns the position of the i-th point in the grid. More... | |
Mathematical methods | |
unsigned int | size () const |
Grid size; the amount of points that defines the grid. More... | |
unsigned int | findIntervalId (const T ¶mValue) const |
Finds the ID of an interval. See template specialization. More... | |
Public Member Functions inherited from QUESO::BaseOneDGrid< T > | |
BaseOneDGrid (const BaseEnvironment &env, const char *prefix) | |
Default constructor. More... | |
virtual | ~BaseOneDGrid () |
Virtual destructor. More... | |
void | print (std::ostream &ofsvar) const |
Prints the values of the grid points. More... | |
Protected Attributes | |
unsigned int | m_size |
T | m_minPosition |
T | m_maxPosition |
Protected Attributes inherited from QUESO::BaseOneDGrid< T > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
Class for accommodating uniform one-dimensional grids.
Definition at line 41 of file UniformOneDGrid.h.
QUESO::UniformOneDGrid< T >::UniformOneDGrid | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
unsigned int | size, | ||
T | minPosition, | ||
T | maxPosition | ||
) |
Default constructor.
Constructs a uniform 1D grid between minPosition
and maxPosition
, with size
points.
Definition at line 31 of file UniformOneDGrid.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseOneDGrid< T >::m_env, QUESO::BaseOneDGrid< T >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::UniformOneDGrid< T >::~UniformOneDGrid | ( | ) |
|
virtual |
Finds the ID of an interval. See template specialization.
This function finds to which interval the parameter value belongs to.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 81 of file UniformOneDGrid.C.
|
virtual |
Returns the position of the i-th point in the grid.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 70 of file UniformOneDGrid.C.
|
virtual |
Grid size; the amount of points that defines the grid.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 63 of file UniformOneDGrid.C.
|
protected |
Definition at line 78 of file UniformOneDGrid.h.
|
protected |
Definition at line 77 of file UniformOneDGrid.h.
|
protected |
Definition at line 76 of file UniformOneDGrid.h.