Flow123d
release_3.0.0-893-gf7bf019
|
Class allows to iterate over sides of neighbour. More...
#include <dh_cell_accessor.hh>
Public Member Functions | |
DHNeighbSide () | |
Default invalid accessor. More... | |
DHNeighbSide (const DHCellAccessor &dh_cell, unsigned int neighb_idx, unsigned int max_idx) | |
Valid accessor allows iterate over neighbor sides. More... | |
bool | is_valid () const |
Check validity of accessor (see default constructor of DHCellAccessor) More... | |
void | inc () |
Iterates to next neighbour side. More... | |
bool | operator== (const DHNeighbSide &other) |
Comparison of accessors. More... | |
operator DHCellSide () const | |
This class is implicitly convertible to DHCellSide. More... | |
Private Attributes | |
DHCellAccessor | dh_cell_ |
Appropriate cell accessor. More... | |
unsigned int | neighb_idx_ |
Index into neigh_vb array. More... | |
unsigned int | max_idx_ |
Maximal index into neigh_vb array. More... | |
Class allows to iterate over sides of neighbour.
Class returns only local cells (owns + ghosts), non-local cells are skipped.
Iterator is defined by:
Note: Class is used only internally. Appropriate range method (DHCellAccessor::neighb_sides) uses convertible iterators and returns corresponding DHCellSide.
Definition at line 284 of file dh_cell_accessor.hh.
|
inline |
Default invalid accessor.
Definition at line 287 of file dh_cell_accessor.hh.
|
inline |
Valid accessor allows iterate over neighbor sides.
dh_cell | Element of lower dim. |
neighb_idx | Index of neighbour. |
max_idx | Maximal index of neighbour, method inc() doesn't set neighb_idx_ on higher value. |
Definition at line 296 of file dh_cell_accessor.hh.
|
inline |
Iterates to next neighbour side.
Definition at line 312 of file dh_cell_accessor.hh.
|
inline |
Check validity of accessor (see default constructor of DHCellAccessor)
Definition at line 307 of file dh_cell_accessor.hh.
|
inline |
This class is implicitly convertible to DHCellSide.
Definition at line 327 of file dh_cell_accessor.hh.
|
inline |
Comparison of accessors.
Definition at line 322 of file dh_cell_accessor.hh.
|
private |
Appropriate cell accessor.
Definition at line 335 of file dh_cell_accessor.hh.
|
private |
Maximal index into neigh_vb array.
Definition at line 339 of file dh_cell_accessor.hh.
|
private |
Index into neigh_vb array.
Definition at line 337 of file dh_cell_accessor.hh.