netxsimdg
Loading...
Searching...
No Matches
Nextsim::RectangularGrid Class Reference
Inheritance diagram for Nextsim::RectangularGrid:
Inheritance graph
Collaboration diagram for Nextsim::RectangularGrid:
Collaboration graph

Classes

struct  GridDimensions
 
class  IRectGridIO
 

Public Member Functions

 RectangularGrid (const GridDimensions &dims)
 
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 setDimensions (const GridDimensions &dims)
 
void setIO (IRectGridIO *p)
 Sets the pointer to the class that will perform the IO. Should be an instance of DevGridIO.
 
- Public Member Functions inherited from Nextsim::IStructure
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 Public Attributes

static const std::string structureName = "simple_rectangular"
 

Additional Inherited Members

- Static Public Member Functions inherited from Nextsim::IStructure
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.
 

Detailed Description

Definition at line 20 of file RectangularGrid.hpp.

Constructor & Destructor Documentation

◆ RectangularGrid() [1/2]

Nextsim::RectangularGrid::RectangularGrid ( )
inline

Definition at line 28 of file RectangularGrid.hpp.

◆ RectangularGrid() [2/2]

Nextsim::RectangularGrid::RectangularGrid ( const GridDimensions & dims)
inline

Definition at line 36 of file RectangularGrid.hpp.

◆ ~RectangularGrid()

virtual Nextsim::RectangularGrid::~RectangularGrid ( )
inlinevirtual

Definition at line 42 of file RectangularGrid.hpp.

Member Function Documentation

◆ dumpModelState()

void Nextsim::RectangularGrid::dumpModelState ( const ModelState & state,
const ModelMetadata & metadata,
const std::string & filePath,
bool isRestart = false ) const
inlineoverridevirtual

Dumps the data to a file path.

Parameters
filePathThe path to attempt writing the data to.

Dumps the given ModelState to the given file path.

Parameters
stateThe ModelState data
filePathThe path to attempt to write the data to.

Implements Nextsim::IStructure.

Definition at line 55 of file RectangularGrid.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getModelState()

ModelState Nextsim::RectangularGrid::getModelState ( const std::string & filePath)
inlineoverridevirtual

Dumps the data to a file path.

Parameters
filePathThe path to attempt writing the data to.

Returns the ModelState stored in the file

Implements Nextsim::IStructure.

Definition at line 50 of file RectangularGrid.hpp.

Here is the caller graph for this function:

◆ nIceLayers()

int Nextsim::RectangularGrid::nIceLayers ( ) const
inlineoverridevirtual

The number of ice layers in this data structure.

Implements Nextsim::IStructure.

Definition at line 63 of file RectangularGrid.hpp.

◆ setDimensions()

void Nextsim::RectangularGrid::setDimensions ( const GridDimensions & dims)
inline

Definition at line 65 of file RectangularGrid.hpp.

◆ setIO()

void Nextsim::RectangularGrid::setIO ( IRectGridIO * p)
inline

Sets the pointer to the class that will perform the IO. Should be an instance of DevGridIO.

Definition at line 99 of file RectangularGrid.hpp.

Here is the caller graph for this function:

◆ structureType()

const std::string & Nextsim::RectangularGrid::structureType ( ) const
inlineoverridevirtual

Returns the structure name that this class will process.

Reimplemented from Nextsim::IStructure.

Definition at line 61 of file RectangularGrid.hpp.

Member Data Documentation

◆ structureName

const std::string Nextsim::RectangularGrid::structureName = "simple_rectangular"
static

Definition at line 101 of file RectangularGrid.hpp.


The documentation for this class was generated from the following files: