![]() |
Peano
|
#include <linked_grid.h>
Public Types | |
using | Geo = _Geo |
Public Member Functions | |
LinkedGrid ()=default | |
LinkedGrid (Geo::Region range, Derived *parent=nullptr, Geo::RowMajorIdx idx=typename Geo::RowMajorIdx(0), int level=0) | |
LinkedGrid (LinkedGrid &&other) noexcept | |
LinkedGrid & | operator= (LinkedGrid &&other) noexcept |
void | split (u32 splitLevel=1) |
Derived * | getRoot () |
Derived * | getChild (const Geo::Point &p) |
u32 | getSiblingIdx () const |
Derived * | getNextSibling () |
Static Public Member Functions | |
static constexpr u32 | getMaxChildren () |
Data Fields | |
Derived * | parent = nullptr |
Derived * | subtrees = nullptr |
Geo::Region | range = typename Geo::Region() |
Geo::RowMajorIdx | idx = typename Geo::RowMajorIdx(0) |
unsigned int | level = 0 |
Static Public Attributes | |
static constexpr u32 | SplitFactor = SPLIT_FACTOR |
Private Member Functions | |
_Geo::RowMajorIdx | getChildIdx (int linearSpaceChildIdx) const |
void | moveOp (LinkedGrid &&other) |
Static Private Member Functions | |
static _Geo::RowMajorIdx | getIdxForLinearSpaceIdx (u32 linearSpaceIdx) |
Definition at line 8 of file linked_grid.h.
using LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::Geo = _Geo |
Definition at line 44 of file linked_grid.h.
|
default |
|
explicit |
Definition at line 58 of file linked_grid.h.
|
noexcept |
Definition at line 67 of file linked_grid.h.
Derived * LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::getChild | ( | const Geo::Point & | p | ) |
Definition at line 102 of file linked_grid.h.
|
private |
Definition at line 19 of file linked_grid.h.
|
staticprivate |
Definition at line 9 of file linked_grid.h.
|
staticconstexpr |
Definition at line 63 of file linked_grid.h.
Referenced by LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::moveOp().
Derived * LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::getNextSibling | ( | ) |
Definition at line 113 of file linked_grid.h.
Derived * LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::getRoot | ( | ) |
Definition at line 96 of file linked_grid.h.
u32 LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::getSiblingIdx | ( | ) | const |
Definition at line 108 of file linked_grid.h.
References assert.
|
private |
Definition at line 25 of file linked_grid.h.
References assert, and LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::getMaxChildren().
|
noexcept |
Definition at line 71 of file linked_grid.h.
Referenced by Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::operator=().
void LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::split | ( | u32 | splitLevel = 1 | ) |
Definition at line 76 of file linked_grid.h.
Referenced by DomainDecomposition< Geo >::DomainDecomposition().
Geo::RowMajorIdx LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::idx = typename Geo::RowMajorIdx(0) |
Definition at line 53 of file linked_grid.h.
Referenced by DomainDecomposition< Geo >::getLeafRankId().
unsigned int LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::level = 0 |
Definition at line 54 of file linked_grid.h.
Derived* LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::parent = nullptr |
Definition at line 48 of file linked_grid.h.
Geo::Region LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::range = typename Geo::Region() |
Definition at line 51 of file linked_grid.h.
Referenced by do_density(), do_density(), BoundaryLeafsIteratorCRTP< Spacetree, Derived, TIterationOrder >::enter(), InsideRegionLeafsIteratorCRTP< Spacetree, Derived, TIterationOrder >::enter(), OutsideRegionLeafsIteratorCRTP< Spacetree, Derived, TIterationOrder >::enter(), Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::findChildNode(), Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::findLeaf(), Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::getRegionParent(), and SpacetreeSorter< Spacetree, PreSortCallback >::run().
|
staticconstexpr |
Definition at line 46 of file linked_grid.h.
Derived* LinkedGrid< _Geo, SPLIT_FACTOR, Derived >::subtrees = nullptr |
Definition at line 49 of file linked_grid.h.
Referenced by Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::clear(), SpacetreePruner< Spacetree, SPLIT >::countChildrenItems(), Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::destroySubtrees(), DomainDecomposition< Geo >::getLeafRankId(), SpacetreePruner< Spacetree, SPLIT >::mergeChildren(), Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::pushItem(), and Spacetree< _Geometry, _Item, THRESHOLD, SPLIT_FACTOR, _TaskBackend >::splitIntoSubtrees().