MoReFEM
|
Depiction of a given label. More...
#include <MeshLabel.hpp>
Public Types | |
using | const_shared_ptr = std::shared_ptr<const MeshLabel> |
Typical smart pointer associated to the object. | |
using | vector_const_shared_ptr = std::vector<const_shared_ptr> |
Vector of smart pointers. | |
Public Member Functions | |
const std::string & | GetDescription () const noexcept |
Get the description. | |
MeshNS::unique_id | GetMeshIdentifier () const noexcept |
Get the mesh identifier. | |
std::size_t | GetIndex () const noexcept |
Get the index. | |
Special members. | |
MeshLabel (MeshNS::unique_id mesh_id, std::size_t index, const std::string &description) | |
Constructor. | |
~MeshLabel () | |
Destructor. | |
MeshLabel (const MeshLabel &rhs)=delete | |
The copy constructor. | |
MeshLabel (MeshLabel &&rhs)=delete | |
The move constructor. | |
MeshLabel & | operator= (const MeshLabel &rhs)=delete |
The (copy) operator=. | |
MeshLabel & | operator= (MeshLabel &&rhs)=delete |
The (move) operator=. | |
Static Public Member Functions | |
static const std::string & | ClassName () |
Name of the class (required by unique_id Crtp). | |
Private Attributes | |
const MeshNS::unique_id | mesh_identifier_ |
Identifier of the mesh for which the label is defined. | |
const std::size_t | index_ |
Identifier related to the label. | |
std::string | description_ |
Description. | |
Depiction of a given label.
This is mostly just a couple unique_id/description; the expected modus operandi is that a (smart) pointer to the MeshLabel object will be passed to each element that belongs to it (geometric elements, edges, etc...)
So MeshLabels objects should always be created through dynamic allocation:
|
explicit |
Constructor.
[in] | mesh_id | Identifier of the Mesh to which the label belongs to. |
[in] | index | Identifier related to the label. This identifier should be unique for a given Mesh (i.e. that a given mesh should get at most one MeshLabel object with a given unique id). |
[internal]
Crtp UniqueId can't be used used as same integer might be used in different meshes.
[in] | description | Description of the label. Might be empty. |
|
delete |
The copy constructor.
[in] | rhs | The object from which the construction occurs. |
|
delete |
The move constructor.
[in] | rhs | The object from which the construction occurs. |
The (copy) operator=.
[in] | rhs | The object from which the affectation occurs. |
The (move) operator=.
[in] | rhs | The object from which the affectation occurs. |
|
private |