NGen
Loading...
Searching...
No Matches
ngen::LayerDataStorage Class Reference

A class to hold and manage layer metadata for the system. More...

#include <LayerData.hpp>

+ Collaboration diagram for ngen::LayerDataStorage:

Public Member Functions

 LayerDataStorage ()
 
 ~LayerDataStorage ()
 
const LayerDescriptionget_layer (int id) const
 return the layer object at this numeric id
 
void put_layer (const LayerDescription &desc, int id)
 store a new layer description in the indicated id slot
 
bool exists (int id)
 check to see if a layer has been associated with an id number
 
std::vector< int > & get_keys ()
 

Private Attributes

std::unordered_map< int, LayerDescriptionstored_layers
 
std::vector< int > keys
 

Detailed Description

A class to hold and manage layer metadata for the system.

Layer can be accessed by interger id the default valid range is -20 .. 80

Constructor & Destructor Documentation

◆ LayerDataStorage()

ngen::LayerDataStorage::LayerDataStorage ( )
inline

◆ ~LayerDataStorage()

ngen::LayerDataStorage::~LayerDataStorage ( )
inline

Member Function Documentation

◆ exists()

bool ngen::LayerDataStorage::exists ( int id)
inline

check to see if a layer has been associated with an id number

References stored_layers.

◆ get_keys()

std::vector< int > & ngen::LayerDataStorage::get_keys ( )
inline

References keys.

◆ get_layer()

const LayerDescription & ngen::LayerDataStorage::get_layer ( int id) const
inline

return the layer object at this numeric id

References stored_layers.

◆ put_layer()

void ngen::LayerDataStorage::put_layer ( const LayerDescription & desc,
int id )
inline

store a new layer description in the indicated id slot

References keys, and stored_layers.

Referenced by realization::Formulation_Manager::read().

Member Data Documentation

◆ keys

std::vector<int> ngen::LayerDataStorage::keys
private

Referenced by get_keys(), and put_layer().

◆ stored_layers

std::unordered_map<int,LayerDescription> ngen::LayerDataStorage::stored_layers
private

Referenced by exists(), get_layer(), and put_layer().


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