A class to hold a grid of ElementData instances in a fixed sized square grid.
More...
#include <DevGrid.hpp>
|
virtual | ~DevGrid () |
| Destructor. The lifetime of pio should be the lifetime of the instance.
|
|
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 (IDevGridIO *p) |
| Sets the pointer to the class that will perform the IO. Should be an instance of DevGridIO.
|
|
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 | 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 a grid of ElementData instances in a fixed sized square grid.
Definition at line 23 of file DevGrid.hpp.
◆ DevGrid()
Nextsim::DevGrid::DevGrid |
( |
| ) |
|
|
inline |
◆ ~DevGrid()
virtual Nextsim::DevGrid::~DevGrid |
( |
| ) |
|
|
inlinevirtual |
Destructor. The lifetime of pio should be the lifetime of the instance.
Definition at line 31 of file DevGrid.hpp.
◆ dumpModelState()
void Nextsim::DevGrid::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 47 of file DevGrid.hpp.
◆ getModelState()
ModelState Nextsim::DevGrid::getModelState |
( |
const std::string & | filePath | ) |
|
|
inlineoverridevirtual |
◆ nIceLayers()
int Nextsim::DevGrid::nIceLayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setIO()
Sets the pointer to the class that will perform the IO. Should be an instance of DevGridIO.
Definition at line 58 of file DevGrid.hpp.
◆ structureType()
const std::string & Nextsim::DevGrid::structureType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ nIceLayersName
const std::string Nextsim::DevGrid::nIceLayersName = "nLayers" |
|
static |
◆ nx
const int Nextsim::DevGrid::nx = 10 |
|
static |
◆ structureName
const std::string Nextsim::DevGrid::structureName = "devgrid" |
|
static |
◆ xDimName
const std::string Nextsim::DevGrid::xDimName = "x" |
|
static |
◆ yDimName
const std::string Nextsim::DevGrid::yDimName = "y" |
|
static |
The documentation for this class was generated from the following files: