|
netxsimdg
|
Interface class for the model structure. More...
#include <IStructure.hpp>


Public Member Functions | |
| virtual ModelState | getModelState (const std::string &filePath)=0 |
| Dumps the data to a file path. | |
| virtual const std::string & | structureType () const |
| Returns the structure name that this class will process. | |
| bool | structureTypeCheck (const std::string &str) const |
| Checks if the passed string matches (ignoring case) the name of the structure that this class constructs. | |
| virtual int | nIceLayers () const =0 |
| The number of ice layers in this data structure. | |
| virtual void | dumpModelState (const ModelState &state, const ModelMetadata &metadata, const std::string &filePath, bool isRestart) const =0 |
| Dumps the data to a file path. | |
Static Public Member Functions | |
| 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. | |
Interface class for the model structure.
Derived classes will hold the structured data of the model. Member functions also provide · input and output of restart data and data fields for output, either natively or on a reshaped grid · iteration over the element data, using a given function. This should allow derived classes to implement both Eulerian grids and Lagrangian meshes.
Definition at line 30 of file IStructure.hpp.
|
inline |
Definition at line 32 of file IStructure.hpp.
|
inlinestatic |
Returns the name of the data node.
Definition at line 84 of file IStructure.hpp.

|
pure virtual |
Dumps the data to a file path.
| filePath | The path to attempt writing the data to. |
Dumps the given ModelState to the given file path.
| state | The ModelState data |
| filePath | The path to attempt to write the data to. |
Implemented in Nextsim::DevGrid, Nextsim::ParametricGrid, and Nextsim::RectangularGrid.
|
pure virtual |
Dumps the data to a file path.
| filePath | The path to attempt writing the data to. |
Returns the ModelState stored in the file
Implemented in Nextsim::DevGrid, Nextsim::ParametricGrid, and Nextsim::RectangularGrid.
|
inlinestatic |
Returns the name of the metadata node.
Definition at line 82 of file IStructure.hpp.

|
pure virtual |
The number of ice layers in this data structure.
Implemented in Nextsim::DevGrid, Nextsim::ParametricGrid, and Nextsim::RectangularGrid.
|
inlinestatic |
The name of the group holding the definitive structure type.
Definition at line 86 of file IStructure.hpp.

|
inlinevirtual |
Returns the structure name that this class will process.
Reimplemented in Nextsim::DevGrid, Nextsim::ParametricGrid, and Nextsim::RectangularGrid.
Definition at line 48 of file IStructure.hpp.

|
inline |
Checks if the passed string matches (ignoring case) the name of the structure that this class constructs.
| str | The string to be checked. |
Definition at line 55 of file IStructure.hpp.

|
inlinestatic |
The name of the node holding the name of the structure type processed by this class.
Definition at line 89 of file IStructure.hpp.
