amroc/hds/BBox.h File Reference

A rectangular region in the computational domain in global index coordinates. More...

#include "lparx_copyright.h"
#include "lparx_copyright.h"
#include <iosfwd>
#include <cstdlib>
#include <cassert>
#include "Coords.h"
#include <iostream>

Go to the source code of this file.

Classes

class  BBox
 Implementation of a rectangular region in the computational domain in global index coordinates. More...

Defines

#define LOWERBOUND   (-1000000000)
#define UPPERBOUND   ( 1000000000)
#define BBoxNULL   ((BBox *) 0)

Functions

std::istream & operator>> (std::istream &s, BBox &bb)
std::ostream & operator<< (std::ostream &s, const BBox &bb)
std::ifstream & operator>> (std::ifstream &s, BBox &bb)
std::ofstream & operator<< (std::ofstream &s, const BBox &bb)
std::stringstream & operator>> (std::stringstream &s, BBox &bb)
std::stringstream & operator<< (std::stringstream &s, const BBox &bb)
Coordsupper (BBox &bb)
int upper (BBox &bb, const int i)
Coordslower (BBox &bb)
int lower (BBox &bb, const int i)
Coordsstepsize (BBox &bb)
int stepsize (BBox &bb, const int i)
Coords extents (BBox &bb)
int extents (BBox &bb, const int i)
int size (BBox &bb)
int inside (BBox &bb, Coords const &c)
BBox accrete (BBox const &bbox, Coords const &c)
BBox grow (BBox const &bbox, Coords const &c)
BBox accrete (BBox const &bbox, const int c)
BBox grow (BBox const &bbox, const int c)
BBoxaccrete (BBox const *const bbox, const int n, const int c)
BBoxgrow (BBox const *const bbox, const int n, const int c)
BBoxaccrete (BBox const *const bbox, const int n, Coords const &c)
BBoxgrow (BBox const *const bbox, const int n, Coords const &c)
BBox growupper (BBox const &bbox, const int c)
BBox growlower (BBox const &bbox, const int c)
BBox growupper (BBox const &bbox, const int d, const int c)
BBox growlower (BBox const &bbox, const int d, const int c)
BBox growbydim (BBox const &bbox, const short *c)
BBox growupperbydim (BBox const &bbox, const short *c)
BBox growlowerbydim (BBox const &bbox, const short *c)
BBox shrinkbydim (BBox const &bbox, const short *c)
BBox shrinkupperbydim (BBox const &bbox, const short *c)
BBox shrinklowerbydim (BBox const &bbox, const short *c)
BBox shiftabs (BBox const &bb, const int c)
BBox shiftabs (BBox const &bb, Coords const &c)
BBox shift (BBox const &bb, const int c)
BBox shift (BBox const &bb, Coords const &c)
BBox shiftabs (BBox const &bbox, const int d, const int c)
BBox shift (BBox const &bbox, const int d, const int c)
BBox coarsen (BBox const &bbox, const int by)
BBox coarsen (BBox const &bbox, Coords const by)
BBox coarsen (BBox const &bbox, const int d, const int by)
BBox refine (const BBox &bbox, const int by)
BBox refine (const BBox &bbox, const Coords &by)
BBox refine (const BBox &bbox, const int by, const int olap)
BBox refine (const BBox &bbox, const int by, const short *olap)
BBox refine (const BBox &bbox, const int d, const int by, const int olap)

Detailed Description

A rectangular region in the computational domain in global index coordinates.

This class is sort of an adaptation and extension of the from Class RegionX of LPARX developed by Scott Kohn (skohn-at-cs.ucsd.edu)

Author:
Manish Parashar, Ralf Deiterding (minor changes)

Define Documentation

#define BBoxNULL   ((BBox *) 0)
#define LOWERBOUND   (-1000000000)

Referenced by BBox::setempty().

#define UPPERBOUND   ( 1000000000)

Referenced by BBox::setempty().


Function Documentation

BBox* accrete ( BBox const *const   bbox,
const int  n,
Coords const &  c 
)

References accrete().

BBox* accrete ( BBox const *const   bbox,
const int  n,
const int  c 
)

References accrete().

BBox accrete ( BBox const &  bbox,
const int  c 
) [inline]
BBox accrete ( BBox const &  bbox,
Coords const &  c 
) [inline]
BBox coarsen ( BBox const &  bbox,
const int  d,
const int  by 
) [inline]

References BBox::coarsen(), and BBox::empty().

BBox coarsen ( BBox const &  bbox,
Coords const   by 
) [inline]

References BBox::coarsen(), and BBox::empty().

int extents ( BBox bb,
const int  i 
) [inline]

References BBox::extents().

Coords extents ( BBox bb  )  [inline]

References BBox::extents().

BBox* grow ( BBox const *const   bbox,
const int  n,
Coords const &  c 
)

References grow().

BBox* grow ( BBox const *const   bbox,
const int  n,
const int  c 
)

References grow().

BBox grow ( BBox const &  bbox,
const int  c 
) [inline]
BBox grow ( BBox const &  bbox,
Coords const &  c 
) [inline]
BBox growbydim ( BBox const &  bbox,
const short *  c 
) [inline]
BBox growlower ( BBox const &  bbox,
const int  d,
const int  c 
) [inline]
BBox growlower ( BBox const &  bbox,
const int  c 
) [inline]
BBox growlowerbydim ( BBox const &  bbox,
const short *  c 
) [inline]
BBox growupper ( BBox const &  bbox,
const int  d,
const int  c 
) [inline]
BBox growupperbydim ( BBox const &  bbox,
const short *  c 
) [inline]
int inside ( BBox bb,
Coords const &  c 
) [inline]

References BBox::inside().

int lower ( BBox bb,
const int  i 
) [inline]

References BBox::lower().

std::stringstream& operator<< ( std::stringstream &  s,
const BBox bb 
)

References BBoxNULL.

std::ofstream& operator<< ( std::ofstream &  s,
const BBox bb 
)

References BBoxNULL.

std::ostream& operator<< ( std::ostream &  s,
const BBox bb 
)
std::stringstream& operator>> ( std::stringstream &  s,
BBox bb 
)

References BBoxNULL.

std::ifstream& operator>> ( std::ifstream &  s,
BBox bb 
)

References BBoxNULL.

std::istream& operator>> ( std::istream &  s,
BBox bb 
)

References MATCH.

BBox refine ( const BBox bbox,
const int  d,
const int  by,
const int  olap 
) [inline]

References BBox::empty(), and BBox::refine().

BBox refine ( const BBox bbox,
const int  by,
const short *  olap 
) [inline]

References BBox::empty(), and BBox::refine().

BBox refine ( const BBox bbox,
const int  by,
const int  olap 
) [inline]

References BBox::empty(), and BBox::refine().

BBox refine ( const BBox bbox,
const Coords by 
) [inline]

References BBox::empty(), and BBox::refine().

BBox refine ( const BBox bbox,
const int  by 
) [inline]
BBox shift ( BBox const &  bbox,
const int  d,
const int  c 
) [inline]
BBox shift ( BBox const &  bb,
Coords const &  c 
) [inline]
BBox shift ( BBox const &  bb,
const int  c 
) [inline]
BBox shiftabs ( BBox const &  bbox,
const int  d,
const int  c 
) [inline]
BBox shiftabs ( BBox const &  bb,
Coords const &  c 
) [inline]
BBox shrinkbydim ( BBox const &  bbox,
const short *  c 
) [inline]
BBox shrinklowerbydim ( BBox const &  bbox,
const short *  c 
) [inline]
BBox shrinkupperbydim ( BBox const &  bbox,
const short *  c 
) [inline]
int stepsize ( BBox bb,
const int  i 
) [inline]

References BBox::stepsize().

Coords& stepsize ( BBox bb  )  [inline]
int upper ( BBox bb,
const int  i 
) [inline]

References BBox::upper().

Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3