21 #ifndef bempp_entity_iterator_hpp
22 #define bempp_entity_iterator_hpp
24 #include "../common/common.hpp"
26 #include "entity_pointer.hpp"
33 template<
int codim>
class Entity;
65 virtual void next() = 0;
83 virtual std::auto_ptr<EntityPointer<codim> >
frozen()
const = 0;
Abstract base class for an object providing read-only access to an entity of codimension codim...
Definition: entity_pointer.hpp:42
Abstract wrapper of an entity of codimension codim.
Definition: entity.hpp:46
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.
bool finished() const
True if iterator points past the end of the iteration range.
Definition: entity_iterator.hpp:68
Abstract base class for iterators over entities.
Definition: entity_iterator.hpp:59
virtual void next()=0
Increment iterator.