|
queso-0.57.1
|
Base class for accommodating one-dimensional grids. More...
#include <OneDGrid.h>
Public Member Functions | |
Constructor/Destructor methods | |
| BaseOneDGrid (const BaseEnvironment &env, const char *prefix) | |
| Default constructor. More... | |
| virtual | ~BaseOneDGrid () |
| Virtual destructor. More... | |
Accessor methods | |
| virtual T | operator[] (unsigned int i) const =0 |
| Returns the position of the i-th point in the grid. See template specialization. More... | |
Mathematical methods | |
| virtual unsigned int | size () const =0 |
| Grid size; the amount of points which defines the grid. See template specialization. More... | |
| virtual unsigned int | findIntervalId (const T ¶mValue) const =0 |
| Finds the ID of an interval. See template specialization. More... | |
Protected Attributes | |
| const BaseEnvironment & | m_env |
| std::string | m_prefix |
I/O methods | |
| void | print (std::ostream &ofsvar) const |
| Prints the values of the grid points. More... | |
| std::ostream & | operator<< (std::ostream &os, const BaseOneDGrid< T > &obj) |
Base class for accommodating one-dimensional grids.
Definition at line 46 of file OneDGrid.h.
| QUESO::BaseOneDGrid< T >::BaseOneDGrid | ( | const BaseEnvironment & | env, |
| const char * | prefix | ||
| ) |
Default constructor.
Definition at line 30 of file OneDGrid.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseOneDGrid< T >::m_env, QUESO::BaseOneDGrid< T >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
|
pure virtual |
Finds the ID of an interval. See template specialization.
Implemented in QUESO::StdOneDGrid< T >, and QUESO::UniformOneDGrid< T >.
|
pure virtual |
Returns the position of the i-th point in the grid. See template specialization.
Implemented in QUESO::StdOneDGrid< T >, and QUESO::UniformOneDGrid< T >.
| void QUESO::BaseOneDGrid< T >::print | ( | std::ostream & | ofsvar | ) | const |
Prints the values of the grid points.
Definition at line 57 of file OneDGrid.C.
References QUESO::size.
|
pure virtual |
Grid size; the amount of points which defines the grid. See template specialization.
Implemented in QUESO::StdOneDGrid< T >, and QUESO::UniformOneDGrid< T >.
|
friend |
Definition at line 73 of file OneDGrid.h.
|
protected |
Definition at line 82 of file OneDGrid.h.
Referenced by QUESO::BaseOneDGrid< T >::BaseOneDGrid(), QUESO::StdOneDGrid< T >::StdOneDGrid(), and QUESO::UniformOneDGrid< T >::UniformOneDGrid().
|
protected |
Definition at line 83 of file OneDGrid.h.
Referenced by QUESO::BaseOneDGrid< T >::BaseOneDGrid(), QUESO::StdOneDGrid< T >::StdOneDGrid(), and QUESO::UniformOneDGrid< T >::UniformOneDGrid().