![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
A MeshDataSet that attaches data of type T to every entity of a mesh that has a specified codimension.
More...
#include <lf/mesh/utils/codim_mesh_data_set.h>
Public Types | |
| using | size_type = Mesh::size_type |
| using | dim_t = base::RefEl::dim_t |
Public Member Functions | |
| CodimMeshDataSet (std::shared_ptr< const Mesh > mesh, dim_t codim) | |
| construct data vector indexed by entities of a particular co-dimension | |
| CodimMeshDataSet (std::shared_ptr< const Mesh > mesh, dim_t codim, T init) | |
| construct and initialize data vector indexed by entities of a particula co-dimension | |
| T & | operator() (const Entity &e) |
| Get a (modifiable) reference to the data stored with entity e. | |
| const T & | operator() (const Entity &e) const override |
| Get the data stored with entity e. | |
| bool | DefinedOn (const Entity &e) const override |
| Does the dataset store information with this entity? | |
Public Member Functions inherited from lf::mesh::utils::MeshDataSet< T > | |
| virtual | ~MeshDataSet ()=default |
| Virtual destructor. | |
Private Attributes | |
| std::shared_ptr< const Mesh > | mesh_ |
| boost::container::vector< T > | data_ |
| dim_t | codim_ |
Additional Inherited Members | |
Protected Member Functions inherited from lf::mesh::utils::MeshDataSet< T > | |
| MeshDataSet ()=default | |
| MeshDataSet (const MeshDataSet &)=default | |
| MeshDataSet (MeshDataSet &&) noexcept=default | |
| MeshDataSet & | operator= (const MeshDataSet &)=default |
| MeshDataSet & | operator= (MeshDataSet &&) noexcept=default |
A MeshDataSet that attaches data of type T to every entity of a mesh that has a specified codimension.
| T | The type of data that should be stored with the entities. |
The MeshDataSet interface class provides more information on how to interact with a MeshDataSet.
To set values for all codimension, see AllCodimMeshDataSet.
Definition at line 28 of file codim_mesh_data_set.h.
| using lf::mesh::utils::CodimMeshDataSet< T >::dim_t = base::RefEl::dim_t |
Definition at line 31 of file codim_mesh_data_set.h.
| using lf::mesh::utils::CodimMeshDataSet< T >::size_type = Mesh::size_type |
Definition at line 30 of file codim_mesh_data_set.h.
|
inline |
construct data vector indexed by entities of a particular co-dimension
| mesh | pointer to underlying mesh |
| codim | co-dimension of indexing entities for the given mesh |
Definition at line 42 of file codim_mesh_data_set.h.
References codim_, data_, mesh_, and lf::mesh::utils::MeshDataSet< T >::MeshDataSet().
|
inline |
construct and initialize data vector indexed by entities of a particula co-dimension
| mesh | pointer to underlying mesh |
| codim | co-dimension of indexing entities for the given mesh |
| init | value to be copied into all data elements |
Definition at line 55 of file codim_mesh_data_set.h.
References mesh_.
|
inlinenodiscardoverridevirtual |
Does the dataset store information with this entity?
| e | The entity that should be tested. |
Implements lf::mesh::utils::MeshDataSet< T >.
Definition at line 78 of file codim_mesh_data_set.h.
References lf::mesh::Entity::Codim(), codim_, and mesh_.
Referenced by operator()(), and operator()().
|
inlinenodiscard |
Get a (modifiable) reference to the data stored with entity e.
| e | The entity whose data should be retrieved/modified |
DefinedOn(e) == false! Definition at line 69 of file codim_mesh_data_set.h.
References data_, DefinedOn(), and mesh_.
|
inlinenodiscardoverridevirtual |
Get the data stored with entity e.
| e | The entity whose data should be retrieved. |
DefinedOn(e) == false! Implements lf::mesh::utils::MeshDataSet< T >.
Definition at line 74 of file codim_mesh_data_set.h.
References data_, DefinedOn(), and mesh_.
|
private |
co-dimension
Definition at line 88 of file codim_mesh_data_set.h.
Referenced by CodimMeshDataSet(), and DefinedOn().
|
private |
data vector
Definition at line 86 of file codim_mesh_data_set.h.
Referenced by CodimMeshDataSet(), operator()(), and operator()().
|
private |
pointer to underlying mesh. Owned by the data set !
Definition at line 84 of file codim_mesh_data_set.h.
Referenced by CodimMeshDataSet(), CodimMeshDataSet(), DefinedOn(), operator()(), and operator()().