MeshEntityIteratorBase.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
MeshEntityIteratorBase¶ Base class for MeshEntityIterators
-
explicit
MeshEntityIteratorBase(const Mesh &mesh)¶ Create iterator for mesh entities over given topological dimension
-
MeshEntityIteratorBase(const Mesh &mesh, std::string opt)¶ Iterator over MeshEntity of dimension dim on mesh, with string option to iterate over “regular”, “ghost” or “all” entities
-
explicit
MeshEntityIteratorBase(const MeshEntity &entity)¶ Create iterator for entities of given dimension connected to given entity
-
MeshEntityIteratorBase(const MeshEntityIteratorBase &it)¶ Copy constructor
-
MeshEntityIteratorBase &
operator++()¶ Step to next mesh entity (prefix increment)
-
MeshEntityIteratorBase &
operator--()¶ Step to the previous mesh entity (prefix decrease)
-
std::size_t
pos() const¶ Return current position
-
bool
operator==(const MeshEntityIteratorBase &it) const¶ Comparison operator.
-
bool
operator!=(const MeshEntityIteratorBase &it) const¶ Comparison operator
-
T &
operator*()¶ Dereference operator
-
T *
operator->()¶ Member access operator
-
bool
end() const¶ Check if iterator has reached the end
-
MeshEntityIteratorBase
end_iterator()¶ Provide a safeguard iterator pointing beyond the end of an iteration process, either iterating over the mesh /or incident entities. Added to be bit more like STL iterators, since many algorithms rely on a kind of beyond iterator.
-
void
set_end()¶ Set pos to end position. To create a kind of mesh.end() iterator.
-
explicit