PanNDE
All Classes Namespaces Functions Pages
Public Member Functions | List of all members
PanNDE::FieldBundle Class Referenceabstract

#include "modules/PanNDE/include/Field.hpp"

Inheritance diagram for PanNDE::FieldBundle:
HostData::HostFieldBundle

Public Member Functions

virtual std::shared_ptr< PanNDE::Mesh > & mesh ()=0
 
virtual std::shared_ptr< PanNDE::Fieldfield (std::string keyname)=0
 
virtual std::string fieldName (int idx)=0
 
virtual int fieldCount ()=0
 
virtual void emplaceField (std::string keyname, std::shared_ptr< PanNDE::Field > field)=0
 
virtual void emplaceField (std::string keyname, PanNDE::Field::FieldType type)=0
 

Detailed Description

Defines a container for passing related fields with their parent mesh

Member Function Documentation

◆ emplaceField() [1/2]

virtual void PanNDE::FieldBundle::emplaceField ( std::string  keyname,
PanNDE::Field::FieldType  type 
)
pure virtual

emplace new field

Parameters
keynamefield name
typefield type to be constructed

Implemented in HostData::HostFieldBundle.

◆ emplaceField() [2/2]

virtual void PanNDE::FieldBundle::emplaceField ( std::string  keyname,
std::shared_ptr< PanNDE::Field field 
)
pure virtual

emplace extant field

Parameters
keynamefield name
fieldfield to be emplaced

◆ field()

virtual std::shared_ptr<PanNDE::Field> PanNDE::FieldBundle::field ( std::string  keyname)
pure virtual

get the field by name

Parameters
keynamefield name

Implemented in HostData::HostFieldBundle.

◆ fieldCount()

virtual int PanNDE::FieldBundle::fieldCount ( )
pure virtual

get the number of bundled fields

Implemented in HostData::HostFieldBundle.

◆ fieldName()

virtual std::string PanNDE::FieldBundle::fieldName ( int  idx)
pure virtual

get the field name by index

Parameters
idxindex of the field in underlying storage

Implemented in HostData::HostFieldBundle.

◆ mesh()

virtual std::shared_ptr<PanNDE::Mesh>& PanNDE::FieldBundle::mesh ( )
pure virtual

get the parent mesh

Implemented in HostData::HostFieldBundle.


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