|
BEM++
2.0
|
Abstract base class for iterators over entities. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/entity_iterator.hpp>
Public Member Functions | |
| virtual void | next ()=0 |
| Increment iterator. | |
| bool | finished () const |
| True if iterator points past the end of the iteration range. | |
| virtual const Entity< codim > & | entity () const =0 |
| Read-only access to the entity referenced by the iterator. | |
| virtual std::auto_ptr < EntityPointer< codim > > | frozen () const =0 |
| A stable pointer to the entity currently referenced by the iterator. More... | |
Public Member Functions inherited from Bempp::EntityPointer< codim > | |
| virtual | ~EntityPointer () |
| Destructor. | |
Protected Attributes | |
| bool | m_finished |
Additional Inherited Members | |
Public Types inherited from Bempp::EntityPointer< codim > | |
| enum | { codimension = codim } |
| Entity codimension. | |
Abstract base class for iterators over entities.
| codim | Codimension of the entities iterated over. |
Typical usage (here ConcreteEntityIterator is some subclass of EntityIterator<codim>):
|
pure virtual |
A stable pointer to the entity currently referenced by the iterator.
The returned pointer is guaranteed to keep referring to the same entity even if the iterator is incremented or destroyed, as long as the grid is not adapted and the grid object itself stays alive.
Implemented in Bempp::ConcreteSubentityIterator< DuneEntity, codimSub >, and Bempp::ConcreteRangeEntityIterator< DuneEntityIt, DuneEntityPointer >.
1.8.5