#include <agglomeration_iterator.h>
Public Types | |
using | AgglomerationContainer |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = AgglomerationAccessor<dim, spacedim> |
using | difference_type = std::ptrdiff_t |
using | pointer = AgglomerationAccessor<dim, spacedim> * |
using | reference = AgglomerationAccessor<dim, spacedim> & |
Public Member Functions | |
AgglomerationIterator () | |
AgglomerationIterator (const typename Triangulation< dim, spacedim >::active_cell_iterator &cell, const AgglomerationHandler< dim, spacedim > *handler) | |
AgglomerationIterator (const typename Triangulation< dim, spacedim >::active_cell_iterator &master_cell, const CellId &cell_id, const AgglomerationHandler< dim, spacedim > *handler) | |
const AgglomerationAccessor< dim, spacedim > & | operator* () const |
AgglomerationAccessor< dim, spacedim > & | operator* () |
const AgglomerationAccessor< dim, spacedim > * | operator-> () const |
AgglomerationAccessor< dim, spacedim > * | operator-> () |
bool | operator== (const AgglomerationIterator< dim, spacedim > &) const |
bool | operator!= (const AgglomerationIterator< dim, spacedim > &) const |
AgglomerationIterator & | operator++ () |
AgglomerationIterator | operator++ (int) |
AgglomerationIterator & | operator-- () |
AgglomerationIterator | operator-- (int) |
IteratorState::IteratorStates | state () const |
const Triangulation< dim, spacedim >::active_cell_iterator & | master_cell () const |
Private Attributes | |
AgglomerationAccessor< dim, spacedim > | accessor |
A class that is used to iterate over polygons. Together with the AgglomerationAccessor class this is used to hide the internal implementation of the particle class and the particle container.
Definition at line 26 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::AgglomerationContainer |
Definition at line 29 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::difference_type = std::ptrdiff_t |
Definition at line 146 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::iterator_category = std::bidirectional_iterator_tag |
Mark the class as bidirectional iterator and declare some alias which are standard for iterators and are used by algorithms to enquire about the specifics of the iterators they work on.
Definition at line 144 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::pointer = AgglomerationAccessor<dim, spacedim> * |
Definition at line 147 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::reference = AgglomerationAccessor<dim, spacedim> & |
Definition at line 148 of file agglomeration_iterator.h.
using AgglomerationIterator< dim, spacedim >::value_type = AgglomerationAccessor<dim, spacedim> |
Definition at line 145 of file agglomeration_iterator.h.
|
inline |
Empty constructor. This constructore creates an iterator pointing to an invalid object.
Definition at line 162 of file agglomeration_iterator.h.
|
inline |
Constructor of the iterator. Takes a reference to the master cell encoding the actual polytope.
Definition at line 169 of file agglomeration_iterator.h.
|
inline |
Same as above, needed for ghosted elements.
Definition at line 177 of file agglomeration_iterator.h.
|
inline |
Return the master cell associated to the present polytope.
Definition at line 298 of file agglomeration_iterator.h.
Referenced by AgglomerationAccessor< dim, spacedim >::AgglomerationAccessor(), AgglomerationAccessor< dim, spacedim >::AgglomerationAccessor(), AgglomerationAccessor< dim, spacedim >::as_dof_handler_iterator(), AgglomerationAccessor< dim, spacedim >::at_boundary(), AgglomerationAccessor< dim, spacedim >::diameter(), AgglomerationAccessor< dim, spacedim >::get_agglomerate(), AgglomerationAccessor< dim, spacedim >::get_dof_indices(), AgglomerationAccessor< dim, spacedim >::get_slaves(), AgglomerationAccessor< dim, spacedim >::is_locally_owned(), AgglomerationAccessor< dim, spacedim >::n_faces(), AgglomerationAccessor< dim, spacedim >::neighbor(), AgglomerationAccessor< dim, spacedim >::next(), AgglomerationAccessor< dim, spacedim >::polytope_boundary(), AgglomerationAccessor< dim, spacedim >::prev(), AgglomerationIterator< dim, spacedim >::state(), and AgglomerationAccessor< dim, spacedim >::volume().
|
inline |
Compare for inequality.
Definition at line 225 of file agglomeration_iterator.h.
References AgglomerationIterator< dim, spacedim >::accessor.
|
inline |
Dereferencing operator, non-const
version.
Definition at line 189 of file agglomeration_iterator.h.
|
inline |
Dereferencing operator, returns a reference to an accessor. Usage is thus like (*i).get_dof_indices ();
Definition at line 207 of file agglomeration_iterator.h.
|
inline |
Prefix ++
operator: ++iterator
. This operator advances the iterator to the next element and returns a reference to *this
.
Definition at line 245 of file agglomeration_iterator.h.
|
inline |
Postfix ++
operator: iterator++
. This operator advances the iterator to the next element, but returns an iterator to the element previously pointed to.
Definition at line 255 of file agglomeration_iterator.h.
References operator++().
|
inline |
Prefix --
operator: --iterator
. This operator moves the iterator to the previous element and returns a reference to *this
.
Definition at line 267 of file agglomeration_iterator.h.
|
inline |
Postfix --
operator: iterator--
. This operator moves the iterator to the previous element, but returns an iterator to the element previously pointed to.
Definition at line 277 of file agglomeration_iterator.h.
|
inline |
Dereferencing operator, non-const
version.
Definition at line 198 of file agglomeration_iterator.h.
References operator*().
|
inline |
Dereferencing operator, returns a pointer of the particle pointed to. Usage is thus like i->get_dof_indices ();
There is a const
and a non-const
version.
Definition at line 216 of file agglomeration_iterator.h.
References operator*().
|
inline |
Compare for equality.
Definition at line 235 of file agglomeration_iterator.h.
References AgglomerationIterator< dim, spacedim >::accessor.
|
inline |
Return the state of the present iterator.
Definition at line 289 of file agglomeration_iterator.h.
References AgglomerationIterator< dim, spacedim >::master_cell().
Referenced by AgglomerationHandler< dim, spacedim >::create_agglomeration_sparsity_pattern(), and dealii::internal::AgglomerationHandlerImplementation< int, int >::reinit_master().
|
private |
The accessor to the actual polytope.
Definition at line 154 of file agglomeration_iterator.h.
Referenced by AgglomerationIterator< dim, spacedim >::operator!=(), and AgglomerationIterator< dim, spacedim >::operator==().