LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
Interface that specifies how data is stored with an entity. More...
#include <lf/mesh/utils/mesh_data_set.h>
Public Member Functions | |
virtual const T & | operator() (const Entity &e) const =0 |
Get the data stored with entity e. | |
virtual bool | DefinedOn (const Entity &e) const =0 |
Does the dataset store information with this entity? | |
virtual | ~MeshDataSet ()=default |
Virtual destructor. | |
Protected Member Functions | |
MeshDataSet ()=default | |
MeshDataSet (const MeshDataSet &)=default | |
MeshDataSet (MeshDataSet &&) noexcept=default | |
MeshDataSet & | operator= (const MeshDataSet &)=default |
MeshDataSet & | operator= (MeshDataSet &&) noexcept=default |
Interface that specifies how data is stored with an entity.
T | The type of data that is stored with the entity. |
A MeshDataSet is a interface that attaches data of type T
with entities of a mesh. Typical types of data that could be stored in a MeshDataSet:
std::shared_ptr
's in order to facilitate memory management. Thus most implementations of this interface don't have public constructors but they provide make_xxx
functions for this purpose.There are a number of classes that implement the MeshDataSet interface that differ mostly by the subset of entities to which they can attach data:
Definition at line 36 of file mesh_data_set.h.
|
protecteddefault |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Does the dataset store information with this entity?
e | The entity that should be tested. |
Implemented in lf::mesh::utils::AllCodimMeshDataSet< T >, lf::mesh::utils::AllCodimMeshDataSet< std::variant< std::monostate, lf::fe::FePoint< SCALAR >, lf::fe::FeHierarchicSegment< SCALAR >, lf::fe::FeHierarchicTria< SCALAR >, lf::fe::FeHierarchicQuad< SCALAR > > >, and lf::mesh::utils::CodimMeshDataSet< T >.
Referenced by lf::io::VtkWriter::WriteScalarCellData(), and lf::io::VtkWriter::WriteScalarPointData().
|
pure virtual |
Get the data stored with entity e.
e | The entity whose data should be retrieved. |
DefinedOn(e) == false
! Implemented in lf::mesh::utils::AllCodimMeshDataSet< T >, lf::mesh::utils::AllCodimMeshDataSet< std::variant< std::monostate, lf::fe::FePoint< SCALAR >, lf::fe::FeHierarchicSegment< SCALAR >, lf::fe::FeHierarchicTria< SCALAR >, lf::fe::FeHierarchicQuad< SCALAR > > >, and lf::mesh::utils::CodimMeshDataSet< T >.
|
protecteddefault |
|
protecteddefaultnoexcept |