BEM++
2.0
|
Iterator over entities referenced by a range of Dune iterators of type DuneEntityIt
.
More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/concrete_range_entity_iterator.hpp>
Public Member Functions | |
ConcreteRangeEntityIterator (const DuneEntityIt &begin, const DuneEntityIt &end, const DomainIndex &domain_index) | |
Constructor. The iterator will go over the range [begin , end ). | |
virtual void | next () |
Increment iterator. | |
virtual const Entity < ConcreteRangeEntityIterator::codimension > & | entity () const |
Read-only access to the entity referenced by the iterator. | |
virtual std::auto_ptr < EntityPointer < ConcreteRangeEntityIterator::codimension > > | frozen () const |
A stable pointer to the entity currently referenced by the iterator. More... | |
![]() | |
bool | finished () const |
True if iterator points past the end of the iteration range. | |
![]() | |
virtual | ~EntityPointer () |
Destructor. | |
Private Member Functions | |
void | updateEntity () |
void | updateFinished () |
Private Attributes | |
DuneEntityIt | m_begin |
DuneEntityIt | m_end |
DuneEntityIt | m_cur |
ConcreteEntity < ConcreteRangeEntityIterator::codimension, typename DuneEntityIt::Entity > | m_entity |
const DomainIndex & | m_domain_index |
Additional Inherited Members | |
![]() | |
enum | { codimension = codim } |
Entity codimension. | |
![]() | |
bool | m_finished |
Iterator over entities referenced by a range of Dune iterators of type DuneEntityIt
.
DuneEntityPointer
is the base class of DuneEntityIt
(it would be easily read from the DuneEntityIt::Base typedef, but, alas, this typedef is private...).
|
inlinevirtual |
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.
Implements Bempp::EntityIterator< DuneEntityIt::codimension >.