|
DOLFIN
DOLFIN C++ interface
|
#include <MeshEntity.h>


Public Member Functions | |
| MeshEntity () | |
| Default Constructor. | |
| MeshEntity (const Mesh &mesh, std::size_t dim, std::size_t index) | |
| virtual | ~MeshEntity () |
| Destructor. | |
| void | init (const Mesh &mesh, std::size_t dim, std::size_t index) |
| bool | operator== (const MeshEntity &e) const |
| bool | operator!= (const MeshEntity &e) const |
| const Mesh & | mesh () const |
| std::size_t | dim () const |
| std::size_t | index () const |
| std::int64_t | global_index () const |
| std::size_t | num_entities (std::size_t dim) const |
| std::size_t | num_global_entities (std::size_t dim) const |
| const unsigned int * | entities (std::size_t dim) const |
| std::size_t | mesh_id () const |
| bool | incident (const MeshEntity &entity) const |
| std::size_t | index (const MeshEntity &entity) const |
| Point | midpoint () const |
| bool | is_ghost () const |
| std::set< unsigned int > | sharing_processes () const |
| bool | is_shared () const |
| unsigned int | owner () const |
| std::string | str (bool verbose) const |
Protected Attributes | |
| Mesh const * | _mesh |
| std::size_t | _dim |
| std::size_t | _local_index |
Friends | |
| class | MeshEntityIterator |
| template<typename T> | |
| class | MeshEntityIteratorBase |
| class | SubsetIterator |
A MeshEntity represents a mesh entity associated with a specific topological dimension of some Mesh.
| MeshEntity::MeshEntity | ( | const Mesh & | mesh, |
| std::size_t | dim, | ||
| std::size_t | index ) |
Constructor
| mesh | (Mesh) The mesh. |
| dim | (std::size_t) The topological dimension. |
| index | (std::size_t) The index. |
|
inline |
Return topological dimension
|
inline |
Return array of indices for incident mesh entities of given topological dimension
| dim | (std::size_t) The topological dimension. |
|
inline |
Return global index of mesh entity
| bool MeshEntity::incident | ( | const MeshEntity & | entity | ) | const |
Check if given entity is incident
| entity | (MeshEntity) The entity. |
|
inline |
Return index of mesh entity
| std::size_t MeshEntity::index | ( | const MeshEntity & | entity | ) | const |
Compute local index of given incident entity (error if not found)
| entity | (MeshEntity) The mesh entity. |
| void MeshEntity::init | ( | const Mesh & | mesh, |
| std::size_t | dim, | ||
| std::size_t | index ) |
Initialize mesh entity with given data
| mesh | (Mesh) The mesh. |
| dim | (std::size_t) The topological dimension. |
| index | (std::size_t) The index. |
|
inline |
Determine whether an entity is a 'ghost' from another process
|
inline |
Determine if an entity is shared or not
|
inline |
Return mesh associated with mesh entity
|
inline |
Return unique mesh ID
| Point MeshEntity::midpoint | ( | ) | const |
Compute midpoint of cell
|
inline |
Return local number of incident mesh entities of given topological dimension
| dim | (std::size_t) The topological dimension. |
|
inline |
Return global number of incident mesh entities of given topological dimension
| dim | (std::size_t) The topological dimension. |
|
inline |
Comparison Operator
| e | (MeshEntity) Another mesh entity. |
|
inline |
Comparison Operator
| e | (MeshEntity) Another mesh entity |
| unsigned int MeshEntity::owner | ( | ) | const |
Get ownership of this entity - only really valid for cells
|
inline |
Return set of sharing processes
| std::string MeshEntity::str | ( | bool | verbose | ) | const |
Return informal string representation (pretty-print)
| verbose | (bool) Flag to turn on additional output. |