60
60
/// The topological dimension.
61
/// index (std::size_t)
63
MeshEntity(const Mesh& mesh, uint dim, uint index);
63
MeshEntity(const Mesh& mesh, std::size_t dim, std::size_t index);
66
66
virtual ~MeshEntity();
74
74
/// The topological dimension.
75
/// index (std::size_t)
77
void init(const Mesh& mesh, uint dim, uint index);
77
void init(const Mesh& mesh, std::size_t dim, std::size_t index);
79
79
/// Comparision Operator
131
131
/// The global index. Set to -1 if global index has not been
133
uint global_index() const
133
std::size_t global_index() const
134
134
{ return _mesh->topology().global_indices(_dim)[_local_index]; }
136
136
/// Return local number of incident mesh entities of given topological dimension
139
/// dim (std::size_t)
140
140
/// The topological dimension.
144
144
/// The number of local incident MeshEntity objects of given dimension.
145
uint num_entities(uint dim) const
145
std::size_t num_entities(std::size_t dim) const
146
146
{ return _mesh->topology()(_dim, dim).size(_local_index); }
148
148
/// Return global number of incident mesh entities of given topological dimension
151
/// dim (std::size_t)
152
152
/// The topological dimension.
156
156
/// The number of global incident MeshEntity objects of given dimension.
157
uint num_global_entities(uint dim) const
157
std::size_t num_global_entities(std::size_t dim) const
158
158
{ return _mesh->topology()(_dim, dim).size_global(_local_index); }
160
160
/// Return array of indices for incident mesh entitites of given
161
161
/// topological dimension
164
/// dim (std::size_t)
165
165
/// The topological dimension.
169
169
/// The index for incident mesh entities of given dimension.
170
const uint* entities(uint dim) const
170
const std::size_t* entities(std::size_t dim) const
171
171
{ return _mesh->topology()(_dim, dim)(_local_index); }
173
173
/// Return unique mesh ID
177
177
/// The unique mesh ID.
178
std::size_t mesh_id() const
179
179
{ return _mesh->id(); }
181
181
/// Check if given entity is incident