LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
A node object for a 2D hybrid mesh. More...
#include <lf/mesh/hybrid2d/point.h>
Public Member Functions | |
Point ()=default | |
default constructors, needed by std::vector | |
Point (size_type index, std::unique_ptr< geometry::Geometry > &&geometry) | |
constructor, is called from MeshFactory | |
unsigned | Codim () const override |
The codimension of this entity w.r.t. the Mesh.dimMesh() of the owning mesh manager. | |
std::span< const Entity *const > | SubEntities (unsigned rel_codim) const override |
Return all sub entities of this entity that have the given codimension (w.r.t. this entity!) | |
std::span< const lf::mesh::Orientation > | RelativeOrientations () const override |
const geometry::Geometry * | Geometry () const override |
return pointer to associated geometry object | |
size_type | index () const |
access to index of an entity | |
base::RefEl | RefEl () const override |
Describes the reference element type of this entity. | |
bool | operator== (const mesh::Entity &rhs) const override |
Check if two entities are the same. | |
~Point () override=default | |
Point (const Point &)=delete | |
Point (Point &&) noexcept=default | |
Point & | operator= (const Point &)=delete |
Point & | operator= (Point &&) noexcept=default |
![]() | |
bool | operator!= (const Entity &rhs) const |
Check if two entities are different. | |
virtual | ~Entity ()=default |
Virtual Destructor. | |
Private Types | |
using | size_type = mesh::Mesh::size_type |
Private Attributes | |
size_type | index_ = -1 |
std::unique_ptr< geometry::Geometry > | geometry_ = nullptr |
Entity * | this_ = nullptr |
Static Private Attributes | |
static constexpr std::array< lf::mesh::Orientation, 1 > | dummy_or_ |
Additional Inherited Members | |
![]() | |
Entity ()=default | |
Entity (const Entity &)=default | |
Entity (Entity &&)=default | |
Entity & | operator= (const Entity &)=default |
Entity & | operator= (Entity &&)=default |
![]() | |
void | PrintInfo (std::ostream &stream, const lf::mesh::Entity &e, int output_ctrl=0) |
Prints info about an entity. | |
A node object for a 2D hybrid mesh.
Entity
object owns a smart pointer to an associated geometry object.Due to the unidirectional storage scheme for incidence information the node object does not have much functionality, except for storing its index.
|
private |
|
default |
default constructors, needed by std::vector
|
delete |
@ brief Default and disabled constructors
|
defaultnoexcept |
|
inlineexplicit |
constructor, is called from MeshFactory
index | index of the entity to be created; will usually be retrieved via the Index() method of Mesh |
geometry | pointer to a geometry object providing the shape of the entity |
Definition at line 53 of file point.h.
References geometry_, and lf::base::RefEl::kPoint().
|
overridedefault |
|
inlineoverridevirtual |
The codimension of this entity w.r.t. the Mesh.dimMesh() of the owning mesh manager.
Implements lf::mesh::Entity.
|
inlineoverridevirtual |
return pointer to associated geometry object
Implements lf::mesh::Entity.
Definition at line 82 of file point.h.
References geometry_.
|
inline |
|
inlineoverridevirtual |
Check if two entities are the same.
rhs | Check if this entity is the same as the rhs entity. |
Implements lf::mesh::Entity.
|
inlineoverridevirtual |
Describes the reference element type of this entity.
Implements lf::mesh::Entity.
Definition at line 89 of file point.h.
References lf::base::RefEl::kPoint().
|
inlineoverridevirtual |
Must not be called: No sub-entities for a point
Implements lf::mesh::Entity.
|
inlineoverridevirtual |
Return all sub entities of this entity that have the given codimension (w.r.t. this entity!)
rel_codim | The relative co-dimension w.r.t. this entity |
Implicitly this function defines the numbering of sub-entities, see lf::base::RefEl and Lecture Document Paragraph 2.7.2.14.
Use of this method is also shown in Lecture Document Example 2.7.2.12.
Implements lf::mesh::Entity.
Definition at line 68 of file point.h.
References this_.
|
staticconstexprprivate |
|
private |
Definition at line 101 of file point.h.
Referenced by Geometry(), and Point().
|
private |
|
private |
Definition at line 104 of file point.h.
Referenced by SubEntities().