![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
Assigns to every entity (all codims) in a mesh a value of type T
More...
#include <lf/mesh/utils/all_codim_mesh_data_set.h>
Public Types | |
| using | size_type = Mesh::size_type |
| using | dim_t = base::RefEl::dim_t |
Public Member Functions | |
| AllCodimMeshDataSet (const AllCodimMeshDataSet &)=delete | |
| AllCodimMeshDataSet (AllCodimMeshDataSet &&) noexcept=default | |
| AllCodimMeshDataSet & | operator= (const AllCodimMeshDataSet &)=delete |
| AllCodimMeshDataSet & | operator= (AllCodimMeshDataSet &&) noexcept=default |
| ~AllCodimMeshDataSet () override=default | |
| 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? | |
| AllCodimMeshDataSet (const std::shared_ptr< const lf::mesh::Mesh > &mesh) | |
| set up default-initialized data arrays | |
| template<class X, class = typename std::enable_if_t<std::is_convertible_v<X, T> && std::is_copy_constructible_v<X>>> | |
| AllCodimMeshDataSet (const std::shared_ptr< const lf::mesh::Mesh > &mesh, X init_value) | |
| Set up data array for entities and initialize it with a given value. | |
Public Member Functions inherited from lf::mesh::utils::MeshDataSet< T > | |
| virtual | ~MeshDataSet ()=default |
| Virtual destructor. | |
Private Attributes | |
| dim_t | dim_mesh_ |
| std::shared_ptr< const lf::mesh::Mesh > | mesh_ |
| boost::container::vector< boost::container::vector< T > > | data_ |
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 |
Assigns to every entity (all codims) in a mesh a value of type T
| T | The type of value to store with every entity |
The MeshDataSet interface class provides more information on how to interact with a MeshDataSet.
To set values only for a specific codimension, see CodimMeshDataSet.
Definition at line 38 of file all_codim_mesh_data_set.h.
| using lf::mesh::utils::AllCodimMeshDataSet< T >::dim_t = base::RefEl::dim_t |
Definition at line 41 of file all_codim_mesh_data_set.h.
| using lf::mesh::utils::AllCodimMeshDataSet< T >::size_type = Mesh::size_type |
Definition at line 40 of file all_codim_mesh_data_set.h.
|
delete |
References AllCodimMeshDataSet().
Referenced by AllCodimMeshDataSet(), AllCodimMeshDataSet(), operator=(), operator=(), and ~AllCodimMeshDataSet().
|
defaultnoexcept |
References AllCodimMeshDataSet().
|
overridedefault |
References AllCodimMeshDataSet().
|
inlineexplicit |
set up default-initialized data arrays
| mesh | shared pointer to underlying mesh |
allocates arrays containing a value of type T for every entity of the mesh
Definition at line 76 of file all_codim_mesh_data_set.h.
References data_, dim_mesh_, mesh_, and lf::mesh::utils::MeshDataSet< T >::MeshDataSet().
|
inline |
Set up data array for entities and initialize it with a given value.
| mesh | shared pointer to underlying mesh |
| init_value | value to be copied in every cell of the array |
Allocates an array for data of type T index by all entities of the mesh.
Definition at line 98 of file all_codim_mesh_data_set.h.
References data_, dim_mesh_, mesh_, and lf::mesh::utils::MeshDataSet< T >::MeshDataSet().
|
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 65 of file all_codim_mesh_data_set.h.
References 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 56 of file all_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 61 of file all_codim_mesh_data_set.h.
References lf::mesh::Entity::Codim(), data_, DefinedOn(), and mesh_.
|
defaultnoexcept |
References AllCodimMeshDataSet().
|
delete |
References AllCodimMeshDataSet().
|
private |
Definition at line 117 of file all_codim_mesh_data_set.h.
Referenced by AllCodimMeshDataSet(), AllCodimMeshDataSet(), operator()(), and operator()().
|
private |
Definition at line 111 of file all_codim_mesh_data_set.h.
Referenced by AllCodimMeshDataSet(), and AllCodimMeshDataSet().
|
private |
Definition at line 112 of file all_codim_mesh_data_set.h.
Referenced by AllCodimMeshDataSet(), AllCodimMeshDataSet(), DefinedOn(), operator()(), and operator()().