AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

GridBoxList Class Reference

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

#include <GridBoxList.h>

Inheritance diagram for GridBoxList:

Inheritance graph
[legend]
Collaboration diagram for GridBoxList:

Collaboration graph
[legend]
List of all members.

Public Methods

 GridBoxList ()
 Constructors.

 GridBoxList (const int maxnum, const int dumarg)
 GridBoxList (const void *package, const int size, const int n)
 GridBoxList (const GridBoxList &other)
GridBoxList & operator= (const GridBoxList &)
 Assignment operator.

 ~GridBoxList (void)
 The destructor.

GridBoxList * alias ()
 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's 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 isempty () const
int number () const
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 empty (void)
 Empty the list.

GridBoxadd ()
 Inlined list manupilation functions.

GridBoxadd (const GridBox &gb)
GridBoxinsert (const GridBox &gb)
void remove (void)
void bboxlist (BBoxList &bbl, const int olap)
 Get the corresponding BBoxList.

void bboxlist (BBoxList &bbl, const short *olap, const int extgh)

Friends

ostream & operator<< (ostream &, const GridBoxList &)
 Overloaded output operator.

ofstream & operator<< (ofstream &, const GridBoxList &)
ifstream & operator>> (ifstream &, GridBoxList &)
 Overloaded binary input operator.

strstream & operator<< (strstream &, const GridBoxList &)
strstream & operator>> (strstream &, GridBoxList &)

Detailed Description

Class GridBoxList implements a linked list of GridBox.

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

Author:
Manish Parashar, Ralf Deiterding (minor changes)

Definition at line 29 of file GridBoxList.h.


The documentation for this class was generated from the following files:


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04