Class GridUnitList implements a linked list of GridUnits. More...
#include <GridUnitList.h>
Public Member Functions | |
GridUnitList () | |
GridUnitList (const unsigned int maxnum) | |
GridUnitList (const void *package, const unsigned int size, const int n) | |
GridUnitList (const GridUnitList &other) | |
GridUnitList (GridUnitList **&levarray) | |
GridUnitList & | operator= (const GridUnitList &) |
~GridUnitList (void) | |
GridUnitList * | alias () |
void | operator-= (const GridUnitList &rhs) |
void | operator*= (const GridUnitList &rhs) |
GridUnitList * | operator- (const GridUnitList &rhs) |
GridUnitList * | operator* (const GridUnitList &rhs) |
GridUnitList * | operator+ (const GridUnitList &rhs) |
void | operator*= (const BBox &rhs) |
void | intersect (const BBox &rhs, const int lev, GridUnitList &gul, const int olap, const int extgh=0) |
void | intersect (const BBoxList &rhs, const int lev, GridUnitList &gul, const int olap, const int extgh=0) |
void | intersect (const BBox &rhs, const int lev, GridUnitList &gul, const short *olap, const int extgh=0) |
void | intersect (const BBoxList &rhs, const int lev, GridUnitList &gul, const short *olap, const int extgh=0) |
unsigned long | load (const int olap) |
unsigned long | load (const int lev, const int olap) |
unsigned long | numelems (const int olap) |
unsigned long | numelems (const int lev, const int olap) |
unsigned long | load (const short *olap) |
unsigned long | load (const int lev, const short *olap) |
unsigned long | numelems (const short *olap) |
unsigned long | numelems (const int lev, const short *olap) |
int | levels (void) |
int | finest (void) |
int | smallest (const int level) |
int | highestbaselevel () |
dMapIndex | lowest () |
dMapIndex | lowest (const int level, const int owner, const int index) |
int | maxindex (void) |
void | setowner (const int p) |
void | setowner (const GridUnitList &cgul, const int p) |
void | levelarray (GridUnitList **&levarray, const int levels) |
void | levellist (GridUnitList &gul, const int lev) |
void | levellist (GridUnitList &gul, const int minlev, const int maxlev) |
void | bboxlistfinest (BBoxList &bbl, const int lev) |
void | bboxlist (BBoxList &bbl, const int lev, const int olap) |
void | bboxlist (BBoxList &bbl, const int lev, const int olap, const int levid) |
void | bboxlist (BBoxList &bbl, const int lev, const short *olap, const int extgh) |
void | bboxlist (BBoxList &bbl, const int lev, const short *olap, const int levid, const int extgh) |
GridUnitList * | refinelist (const int atlev, const int levs=1) |
Refine everywhere. | |
GridUnitList * | refinelist (const BBoxList &bblist, const int atlev, const int minw) |
void | refinethislist (const BBoxList &bblist, const int atlev, const int minw) |
void | decompose (const int lev=1) |
Class GridUnitList implements a linked list of GridUnits.
Routines to manipulate this list are provided. A GridUnitList is input and output for the partitioner.
GridUnitList::GridUnitList | ( | ) | [inline] |
Referenced by operator*(), operator+(), and operator-().
GridUnitList::GridUnitList | ( | const unsigned int | maxnum | ) | [inline, explicit] |
GridUnitList::GridUnitList | ( | const void * | package, | |
const unsigned int | size, | |||
const int | n | |||
) | [inline] |
GridUnitList::GridUnitList | ( | const GridUnitList & | other | ) | [inline] |
GridUnitList::GridUnitList | ( | GridUnitList **& | levarray | ) |
GridUnitList::~GridUnitList | ( | void | ) | [inline] |
GridUnitList* GridUnitList::alias | ( | ) | [inline] |
Reimplemented from ObjectCounter.
void GridUnitList::bboxlist | ( | BBoxList & | bbl, | |
const int | lev, | |||
const short * | olap, | |||
const int | levid, | |||
const int | extgh | |||
) |
void GridUnitList::bboxlist | ( | BBoxList & | bbl, | |
const int | lev, | |||
const short * | olap, | |||
const int | extgh | |||
) |
void GridUnitList::bboxlist | ( | BBoxList & | bbl, | |
const int | lev, | |||
const int | olap, | |||
const int | levid | |||
) |
void GridUnitList::bboxlist | ( | BBoxList & | bbl, | |
const int | lev, | |||
const int | olap | |||
) |
void GridUnitList::bboxlistfinest | ( | BBoxList & | bbl, | |
const int | lev | |||
) |
void GridUnitList::decompose | ( | const int | lev = 1 |
) |
References Bucket< GridUnit >::current(), GridUnit::extent, GridUnitNULL, GridUnit::guBaseIndex(), GridUnit::guSetDecompose(), Bucket< GridUnit >::insert(), GridUnit::levstep, and Bucket< GridUnit >::prev().
Referenced by GridHierarchy::DAGH_CreateGridUnitList(), GridUnitList(), operator*(), operator*=(), operator+(), operator-(), operator-=(), refinelist(), and refinethislist().
int GridUnitList::finest | ( | void | ) |
int GridUnitList::highestbaselevel | ( | void | ) |
void GridUnitList::intersect | ( | const BBoxList & | rhs, | |
const int | lev, | |||
GridUnitList & | gul, | |||
const short * | olap, | |||
const int | extgh = 0 | |||
) |
void GridUnitList::intersect | ( | const BBox & | rhs, | |
const int | lev, | |||
GridUnitList & | gul, | |||
const short * | olap, | |||
const int | extgh = 0 | |||
) |
void GridUnitList::intersect | ( | const BBoxList & | rhs, | |
const int | lev, | |||
GridUnitList & | gul, | |||
const int | olap, | |||
const int | extgh = 0 | |||
) |
void GridUnitList::intersect | ( | const BBox & | rhs, | |
const int | lev, | |||
GridUnitList & | gul, | |||
const int | olap, | |||
const int | extgh = 0 | |||
) |
References Bucket< Type >::add(), Bucket< GridUnit >::empty(), BBox::empty(), Bucket< Type >::empty(), Bucket< GridUnit >::first(), GridUnit::guBBox(), and Bucket< GridUnit >::next().
Referenced by operator*(), and operator*=().
void GridUnitList::levelarray | ( | GridUnitList **& | levarray, | |
const int | levels | |||
) |
void GridUnitList::levellist | ( | GridUnitList & | gul, | |
const int | minlev, | |||
const int | maxlev | |||
) |
void GridUnitList::levellist | ( | GridUnitList & | gul, | |
const int | lev | |||
) |
int GridUnitList::levels | ( | void | ) |
References Bucket< GridUnit >::currec(), Bucket< GridUnit >::first(), GridUnit::guLevels(), and Bucket< GridUnit >::setcurrec().
Referenced by DAGHDistribution::get_load().
unsigned long GridUnitList::load | ( | const int | lev, | |
const short * | olap | |||
) |
unsigned long GridUnitList::load | ( | const short * | olap | ) |
unsigned long GridUnitList::load | ( | const int | lev, | |
const int | olap | |||
) |
unsigned long GridUnitList::load | ( | const int | olap | ) |
References Bucket< GridUnit >::currec(), Bucket< GridUnit >::first(), GridUnit::guWork(), Bucket< GridUnit >::next(), and Bucket< GridUnit >::setcurrec().
Referenced by DAGHDistribution::get_load().
dMapIndex GridUnitList::lowest | ( | const int | level, | |
const int | owner, | |||
const int | index | |||
) |
dMapIndex GridUnitList::lowest | ( | void | ) |
int GridUnitList::maxindex | ( | void | ) |
unsigned long GridUnitList::numelems | ( | const int | lev, | |
const short * | olap | |||
) |
unsigned long GridUnitList::numelems | ( | const short * | olap | ) |
unsigned long GridUnitList::numelems | ( | const int | lev, | |
const int | olap | |||
) |
unsigned long GridUnitList::numelems | ( | const int | olap | ) |
References Bucket< GridUnit >::currec(), Bucket< GridUnit >::first(), GridUnit::guNum(), Bucket< GridUnit >::next(), and Bucket< GridUnit >::setcurrec().
Referenced by DAGHDistribution::get_load().
GridUnitList * GridUnitList::operator* | ( | const GridUnitList & | rhs | ) |
void GridUnitList::operator*= | ( | const BBox & | rhs | ) |
void GridUnitList::operator*= | ( | const GridUnitList & | rhs | ) |
GridUnitList * GridUnitList::operator+ | ( | const GridUnitList & | rhs | ) |
GridUnitList * GridUnitList::operator- | ( | const GridUnitList & | rhs | ) |
void GridUnitList::operator-= | ( | const GridUnitList & | rhs | ) |
GridUnitList & GridUnitList::operator= | ( | const GridUnitList & | cother | ) |
GridUnitList * GridUnitList::refinelist | ( | const BBoxList & | bblist, | |
const int | atlev, | |||
const int | minw | |||
) |
References Bucket< Type >::add(), Bucket< Type >::currec(), decompose(), DefMinimumGUExtent, BBox::empty(), Bucket< Type >::first(), GridUnit::guBBox(), GridUnit::guExtent(), GridUnit::guExtentAbs(), GridUnit::guSetRefine(), Bucket< Type >::insert(), levellist(), GridUnit::minlev, Bucket< Type >::next(), Bucket< Type >::prev(), Bucket< Type >::remove(), and Bucket< Type >::setcurrec().
GridUnitList * GridUnitList::refinelist | ( | const int | atlev, | |
const int | levs = 1 | |||
) |
Refine everywhere.
References Bucket< Type >::add(), Bucket< Type >::first(), GridUnit::guSetRefine(), levellist(), and Bucket< Type >::next().
void GridUnitList::refinethislist | ( | const BBoxList & | bblist, | |
const int | atlev, | |||
const int | minw | |||
) |
References Bucket< Type >::currec(), decompose(), DefMinimumGUExtent, BBox::empty(), Bucket< Type >::first(), Bucket< GridUnit >::first(), GridUnit::guBBox(), GridUnit::guCoarsen(), GridUnit::guExtent(), GridUnit::guExtentAbs(), GridUnit::guFineLev(), GridUnit::guLevStep(), Bucket< Type >::insert(), Bucket< GridUnit >::isempty(), GridUnit::minlev, Bucket< Type >::next(), Bucket< GridUnit >::next(), Bucket< Type >::prev(), and Bucket< Type >::setcurrec().
void GridUnitList::setowner | ( | const GridUnitList & | cgul, | |
const int | p | |||
) |
void GridUnitList::setowner | ( | const int | p | ) |
int GridUnitList::smallest | ( | const int | level | ) |