A class to hold the grid data for parameterised rectangular grids.
More...
#include <ParametricGrid.hpp>
|
ModelState | getModelState (const std::string &filePath) override |
| Dumps the data to a file path.
|
|
void | dumpModelState (const ModelState &state, const ModelMetadata &metadata, const std::string &filePath, bool isRestart=false) const override |
| Dumps the data to a file path.
|
|
const std::string & | structureType () const override |
| Returns the structure name that this class will process.
|
|
int | nIceLayers () const override |
| The number of ice layers in this data structure.
|
|
void | setIO (IParaGridIO *p) |
|
bool | structureTypeCheck (const std::string &str) const |
| Checks if the passed string matches (ignoring case) the name of the structure that this class constructs.
|
|
|
static const std::string | structureName = "parametric_rectangular" |
|
|
static const std::string | metadataNodeName () |
| Returns the name of the metadata node.
|
|
static const std::string | dataNodeName () |
| Returns the name of the data node.
|
|
static const std::string | structureNodeName () |
| The name of the group holding the definitive structure type.
|
|
static const std::string | typeNodeName () |
| The name of the node holding the name of the structure type processed by this class.
|
|
A class to hold the grid data for parameterised rectangular grids.
Definition at line 22 of file ParametricGrid.hpp.
◆ GridDimensions
ModelArray::MultiDim Nextsim::ParametricGrid::GridDimensions |
◆ ParametricGrid()
Nextsim::ParametricGrid::ParametricGrid |
( |
| ) |
|
|
inline |
◆ ~ParametricGrid()
virtual Nextsim::ParametricGrid::~ParametricGrid |
( |
| ) |
|
|
inlinevirtual |
◆ dumpModelState()
void Nextsim::ParametricGrid::dumpModelState |
( |
const ModelState & | state, |
|
|
const ModelMetadata & | metadata, |
|
|
const std::string & | filePath, |
|
|
bool | isRestart = false ) const |
|
inlineoverridevirtual |
Dumps the data to a file path.
- Parameters
-
filePath | The path to attempt writing the data to. |
Dumps the given ModelState to the given file path.
- Parameters
-
state | The ModelState data |
filePath | The path to attempt to write the data to. |
Implements Nextsim::IStructure.
Definition at line 42 of file ParametricGrid.hpp.
◆ getModelState()
ModelState Nextsim::ParametricGrid::getModelState |
( |
const std::string & | filePath | ) |
|
|
inlineoverridevirtual |
◆ nIceLayers()
int Nextsim::ParametricGrid::nIceLayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setIO()
Sets the IParaGridIO instance to use to drive the input and output.
- Parameters
-
p | Pointer to the instance to use. |
Definition at line 90 of file ParametricGrid.hpp.
◆ structureType()
const std::string & Nextsim::ParametricGrid::structureType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ structureName
const std::string Nextsim::ParametricGrid::structureName = "parametric_rectangular" |
|
static |
The documentation for this class was generated from the following files: