GridBoxList Class Reference

Class GridBoxList implements a linked list of GridBox. More...

#include <GridBoxList.h>

Inheritance diagram for GridBoxList:
Bucket< GridBox > ObjectCounter

List of all members.

Public Member Functions

 GridBoxList ()
 Constructors.
 GridBoxList (const unsigned int maxnum)
 GridBoxList (const void *package, const unsigned int size, const int n)
 GridBoxList (const GridBoxList &other)
GridBoxListoperator= (const GridBoxList &)
 Assignment operator.
 ~GridBoxList (void)
 The destructor.
GridBoxListalias ()
 For the object counter.
int difference (GridBoxList &gbl, const GridBox &lhs, const GridBox &rhs)
 Breaks a GridBox lhs against GridBox rhs and adds the pieces not contained in rhs to the GridBoxList.
int intersection (GridBoxList &gbl, const GridBox &lhs, const GridBox &rhs)
 Adds the intersection of the lhs and rhs GridBox objects to the GridBoxList.
void operator-= (const GridBoxList &rhs)
 Difference operator for GBL = retain only those regions that are not in rhs.
void operator*= (const GridBoxList &rhs)
 Intersection operator for GBL = retain only those regions that are common.
void intersect (const BBox &rhs, GridBoxList &gbl)
 GBL intersection with a BBox & BBoxList.
void intersect (const BBox &rhs, GridBoxList &gbl, const int olap, const int extgh=0)
void intersect (const BBoxList &rhs, GridBoxList &gbl, const int olap, const int extgh=0)
void intersect (const BBox &rhs, GridBoxList &gbl, const short *olap, const int extgh=0)
void intersect (const BBoxList &rhs, GridBoxList &gbl, const short *olap, const int extgh=0)
int maxindex (void)
 Returns the max value of index in the list.
int index (const BBox &bbv)
 Finds the index in the list which intersects with bb.
const GridBoxfind (const BBox &bb)
 Finds a particular GridBox in the list.
void setindex (void)
 Set list stats.
void setowner (const int p)
void bboxlist (BBoxList &bbl, const int olap)
 Get the corresponding BBoxList.
void bboxlist (BBoxList &bbl, const short *olap, const int extgh)

Detailed Description

Class GridBoxList implements a linked list of GridBox.

Routines to manipulate this list are provided. The topology of each level is stored in various GridBoxLists.

Author:
Manish Parashar, Ralf Deiterding (minor changes)

Constructor & Destructor Documentation

GridBoxList::GridBoxList (  )  [inline]

Constructors.

GridBoxList::GridBoxList ( const unsigned int  maxnum  )  [inline, explicit]
GridBoxList::GridBoxList ( const void *  package,
const unsigned int  size,
const int  n 
) [inline]
GridBoxList::GridBoxList ( const GridBoxList other  )  [inline]
GridBoxList::~GridBoxList ( void   )  [inline]

The destructor.


Member Function Documentation

GridBoxList* GridBoxList::alias (  )  [inline]

For the object counter.

Reimplemented from ObjectCounter.

void GridBoxList::bboxlist ( BBoxList bbl,
const short *  olap,
const int  extgh 
)
int GridBoxList::difference ( GridBoxList gbl,
const GridBox lhs,
const GridBox rhs 
)

Breaks a GridBox lhs against GridBox rhs and adds the pieces not contained in rhs to the GridBoxList.

References DAGHFalse, DAGHTrue, GridBox::gbBBox(), Bucket< Type >::insert(), BBox::intersects(), BBox::lower(), Bucket< Type >::prev(), BBox::rank, BBox::stepsize(), and BBox::upper().

Referenced by operator-=().

const GridBox & GridBoxList::find ( const BBox bb  ) 
void GridBoxList::intersect ( const BBox rhs,
GridBoxList gbl,
const short *  olap,
const int  extgh = 0 
)
void GridBoxList::intersect ( const BBox rhs,
GridBoxList gbl,
const int  olap,
const int  extgh = 0 
)
void GridBoxList::intersect ( const BBox rhs,
GridBoxList gbl 
)
int GridBoxList::intersection ( GridBoxList gbl,
const GridBox lhs,
const GridBox rhs 
)

Adds the intersection of the lhs and rhs GridBox objects to the GridBoxList.

References DAGHFalse, DAGHTrue, GridBox::gbBBox(), Bucket< Type >::insert(), BBox::intersects(), Bucket< Type >::next(), and Bucket< Type >::prev().

Referenced by operator*=().

int GridBoxList::maxindex ( void   ) 
void GridBoxList::operator*= ( const GridBoxList rhs  ) 

Intersection operator for GBL = retain only those regions that are common.

References Bucket< Type >::currec(), Bucket< Type >::first(), intersect(), intersection(), Bucket< Type >::next(), Bucket< Type >::remove(), and Bucket< Type >::setcurrec().

void GridBoxList::operator-= ( const GridBoxList rhs  ) 

Difference operator for GBL = retain only those regions that are not in rhs.

References Bucket< Type >::currec(), difference(), Bucket< Type >::first(), Bucket< Type >::next(), Bucket< Type >::remove(), and Bucket< Type >::setcurrec().

void GridBoxList::setindex ( void   )  [inline]

Set list stats.

References Bucket< GridBox >::first(), and Bucket< GridBox >::next().

void GridBoxList::setowner ( const int  p  )  [inline]

The documentation for this class was generated from the following files:
Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3