1 #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_ITERATOR_HH 2 #define DUNE_FEM_GRIDPART_IDGRIDPART_ITERATOR_HH 7 #include <dune/grid/common/entitypointer.hh> 8 #include <dune/grid/common/gridenums.hh> 19 template<
int codim, PartitionIteratorType pitype,
class Gr
idFamily >
22 typedef typename std::remove_const< GridFamily >::type::Traits Traits;
24 typedef typename Traits::HostGridPartType HostGridPartType;
28 typedef typename HostGridPartType::template Codim< codim >::template Partition< pitype >::IteratorType
HostIteratorType;
32 typedef typename Traits::template Codim< codimension >::Entity
Entity;
36 IdIterator ( ExtraData data, HostIteratorType hostIterator )
38 hostIterator_(
std::
move( hostIterator ) )
48 return typename Entity::Implementation( data_, *hostIterator_ );
53 return hostIterator_ == rhs.hostIterator_;
58 return hostIterator_.level();
61 operator Dune::DefaultEntityPointer< Entity > ()
const 63 return Dune::DefaultEntityPointer< Entity >(
dereference() );
66 bool equals (
const Dune::DefaultEntityPointer< Entity > &rhs )
const 73 HostIteratorType hostIterator_;
80 #endif // #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_ITERATOR_HH IdIterator(ExtraData data, HostIteratorType hostIterator)
Definition: idgridpart/iterator.hh:36
HostGridPartType::template Codim< codim >::template Partition< pitype >::IteratorType HostIteratorType
Definition: idgridpart/iterator.hh:28
Entity dereference() const
Definition: idgridpart/iterator.hh:46
void increment()
Definition: idgridpart/iterator.hh:41
static const int codimension
Definition: idgridpart/iterator.hh:30
int level() const
Definition: idgridpart/iterator.hh:56
Definition: idgridpart/iterator.hh:20
Definition: coordinate.hh:4
bool equals(const IdIterator &rhs) const
Definition: idgridpart/iterator.hh:51
Traits::template Codim< codimension >::Entity Entity
Definition: idgridpart/iterator.hh:32
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38
Traits::ExtraData ExtraData
Definition: idgridpart/iterator.hh:27
bool equals(const Dune::DefaultEntityPointer< Entity > &rhs) const
Definition: idgridpart/iterator.hh:66