28 #include "NamespaceHeader.H" 112 void unset (
int dir);
119 bool test (
int dir)
const;
246 friend std::ostream&
operator<< (std::ostream& os,
254 friend std::istream&
operator>> (std::istream& is,
261 static unsigned char mask (
int k);
305 itype =
D_TERM6((iv[0]?1:0), | ((iv[1]?1:0)<<1), | ((iv[2]?1:0)<<2),
306 | (iv[3]?1:0), | ((iv[4]?1:0)<<1), | ((iv[5]?1:0)<<2));
312 itype =
D_TERM6((iv[0]?1:0), | ((iv[1]?1:0)<<1), | ((iv[2]?1:0)<<2),
313 | (iv[3]?1:0), | ((iv[4]?1:0)<<1), | ((iv[5]?1:0)<<2));
322 | (l<<3), | (m<<4), | (n<<5));
532 void define(
const IntVect& small,
554 void define(
const IntVect& small,
565 void define(
const Box& b);
579 const IntVect& smallEnd ()
const;
595 int smallEnd (
int dir)
const;
602 const IntVect& bigEnd ()
const;
611 int bigEnd (
int dir)
const;
620 const int* loVect ()
const;
629 const int* hiVect ()
const;
638 const int* getVect ()
const;
647 long index (
const IntVect& v)
const;
692 int size (
int dir)
const;
699 bool numPtsOK ()
const;
708 long numPts ()
const;
715 bool volumeOK ()
const;
724 long volume ()
const;
733 int longside (
int& dir)
const;
740 int longside ()
const;
749 int shortside (
int& dir)
const;
756 int shortside ()
const;
781 bool contains (
const IntVect& p)
const;
790 bool contains (
const Box& b)
const;
799 bool intersects (
const Box& b)
const;
810 bool intersectsNotEmpty (
const Box& b)
const;
818 bool sameSize (
const Box& b)
const;
825 bool sameType (
const Box &b)
const;
835 bool eq(
const Box& b)
const;
843 bool neq(
const Box& b)
const;
864 bool lt(
const Box& rhs)
const;
892 Box& setSmall (
int dir,
912 Box& setBig (
int dir,
921 Box& setRange (
int dir,
966 Box& convert (
int dir,
990 Box& surroundingNodes_int(
int dir);
1036 Box& enclosedCells_int (
int dir);
1072 Box& shift (
int dir,
1099 Box& shiftHalf (
int dir,
1103 void convertOldToNew(
const IntVect& a_permutation,
1105 const IntVect& a_translation);
1109 void convertNewToOld(
const IntVect& a_permutation,
1111 const IntVect& a_translation);
1255 Box operator& (
const Box&)
const;
1264 Box& operator&= (
const Box&);
1267 friend Box adjCellBox (
const Box& b,
1359 Box& growLo (
int idir,
1367 Box& growDir (
int a_idir,
1381 Box& growHi (
int idir,
1414 int refinement_ratio);
1444 const IntVect& refinement_ratio);
1483 int refinement_ratio);
1519 const IntVect& refinement_ratio);
1534 const int* shv)
const;
1568 void degenerate(
Box& a_to,
const SliceSpec& a_sliceSpec,
1569 bool* a_outofbounds=0 )
const;
1578 friend std::ostream&
operator<< (std::ostream& os,
1586 friend std::istream&
operator>> (std::istream& os,
1601 void dumpOn (std::ostream& strm)
const;
1624 void computeBoxLen ();
1625 void computeBoxLenNotEmpty();
1628 static void setTempestOutputFormat(
bool );
1635 bool numPtsOK (
long& N)
const;
1639 bool volumeOK (
long& N)
const;
1649 #include "NamespaceFooter.H" 1661 void linearIn(CH_XDIR::Box& a_outputT,
const void*
const a_inBuf);
1665 void linearOut(
void*
const a_outBuf,
const CH_XDIR::Box& a_inputT);
1685 #include "NamespaceHeader.H" 1713 const IntVect& refinement_ratio);
1715 int refinement_ratio);
1717 const IntVect& refinement_ratio);
1719 int refinement_ratio);
1729 : smallend(b.smallend),
1957 #if CH_SPACEDIM == 1 1959 #elif CH_SPACEDIM==2 1962 #elif CH_SPACEDIM==3 1967 #elif CH_SPACEDIM==4 1974 #elif CH_SPACEDIM==5 1983 #elif CH_SPACEDIM==6 2292 if (!(big >= small))
2326 if (!(big >= small))
2407 #include "NamespaceFooter.H" #define D_DECL6(a, b, c, d, e, f)
Definition: CHArray.H:39
Box & operator=(const Box &b)
{ Modification Functions}
Definition: Box.H:1740
Box & operator-=(const IntVect &v)
Definition: Box.H:2230
void unset(int dir)
Definition: Box.H:334
bool operator<(const Box &rhs) const
Definition: Box.H:2242
C::self_type operator-(const C &, const C &)
Definition: GenericArithmeticI.H:128
const int * getVect() const
Definition: IntVect.H:758
IntVect size() const
size functions
Definition: Box.H:1814
const int * hiVect() const
Definition: Box.H:1841
#define D_TERM6(a, b, c, d, e, f)
Definition: CHArray.H:40
bool operator!=(const Box &b) const
Definition: Box.H:1933
#define CH_SPACEDIM
Definition: SPACE.H:52
#define CH_assert(cond)
Definition: CHArray.H:37
Box refine(const Box &b, const IntVect &refinement_ratio)
bool operator==(const Box &b) const
Definition: Box.H:1926
bool test(int dir) const
Definition: Box.H:341
friend std::istream & operator>>(std::istream &is, IndexType &itype)
const int * getVect() const
Definition: Box.H:1848
bool cellCentered() const
Definition: Box.H:1940
bool sameSize(const Box &b) const
Definition: Box.H:1913
bool operator!=(const IndexType &t) const
Definition: Box.H:397
Box coarsen(const Box &b, const IntVect &refinement_ratio)
one dimensional dynamic array
Definition: Vector.H:52
Box operator &(const Box &) const
intersection functions
friend std::ostream & operator<<(std::ostream &os, const IndexType &itype)
const int * loVect() const
Definition: Box.H:1834
void clear()
Definition: Box.H:355
IndexType btype
Definition: Box.H:1644
Definition: SliceSpec.H:42
void flip(int i)
Definition: Box.H:376
IndexTM< T, N > diagShift(const IndexTM< T, N > &a_p, T a_s)
Definition: IndexTMI.H:390
IntVect type() const
Definition: Box.H:1800
bool contains(const IntVect &p) const
Definition: Box.H:1888
IndexType()
Definition: Box.H:282
Box copy() const
Definition: Box.H:567
int isEmpty(const box2d *)
Box operator-(const IntVect &v) const
Definition: Box.H:2250
void linearOut(void *const a_outBuf, const CH_XDIR::Box &a_inputT)
bool ok() const
Definition: Box.H:369
IntVect sideEnd(Side::LoHiSide a_side) const
Definition: Box.H:1753
void setVal(int i, int val)
Definition: IntVect.H:734
Box minBox(const Box &b1, const Box &b2)
void setType(int dir, CellIndex t)
Definition: Box.H:418
bool numPtsOK() const
Definition: Box.H:1855
const IntVect & bigEnd() const
Definition: Box.H:1779
C::self_type operator+(const C &, const C &)
Definition: GenericArithmeticI.H:124
IntVect & shift(int coord, int s)
Definition: IntVect.H:1086
IntVect bigend
Definition: Box.H:1642
Box & setSmall(const IntVect &sm)
Definition: Box.H:2028
IntVect ixType() const
Definition: Box.H:440
static const IntVect Unit
Definition: IntVect.H:632
static IndexType TheNodeType()
const IntVect & smallEnd() const
{ Accessors}
Definition: Box.H:1765
Box surroundingNodes(const Box &b, int dir)
Definition: Box.H:2166
IndexType ixType() const
centering
Definition: Box.H:1793
Box bdryBox(const Box &b, int dir, Side::LoHiSide a_sd, int len=1)
Box & growDir(int a_idir, const Side::LoHiSide &a_sd, int a_cell)
Definition: Box.H:2368
Box grow(const Box &b, int i)
Definition: Box.H:2282
Box adjCellLo(const Box &b, int dir, int len=1)
static IndexType TheCellType()
void linearIn(CH_XDIR::Box &a_outputT, const void *const a_inBuf)
Box enclosedCells(const Box &b, int dir)
Definition: Box.H:2183
LoHiSide
Definition: LoHiSide.H:27
void set(int dir)
Definition: Box.H:327
bool nodeCentered() const
Definition: Box.H:411
Box & setRange(int dir, int sm_index, int n_cells=1)
Definition: Box.H:2074
IntVect smallend
Definition: Box.H:1641
static const IntVect Zero
Definition: IntVect.H:627
Box adjCellHi(const Box &b, int dir, int len=1)
bool sameType(const Box &b) const
Definition: Box.H:1897
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
IntVect & diagShift(int s)
Definition: IntVect.H:1104
long index(const IntVect &v) const
Definition: Box.H:1954
int linearSize(const CH_XDIR::Box &a_input)
void setall()
Definition: Box.H:348
static bool s_tempestOutputFormat
Definition: Box.H:1646
CellIndex ixType(int dir) const
Definition: Box.H:426
unsigned char itype
Definition: Box.H:266
Box & convert(IndexType typ)
centering type conversion functions
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:267
int vect[SpaceDim]
Definition: IntVect.H:655
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: LoHiSide.H:30
Cell-Based or Node-Based Indices.
Definition: Box.H:41
void computeBoxLen()
{ Box Constants}
Definition: Box.H:2003
bool operator==(const IndexType &t) const
Definition: Box.H:383
Box & shift(int dir, int nzones)
shift functions
Definition: Box.H:2088
static unsigned char mask(int k)
Definition: Box.H:276
Box & operator+=(const IntVect &v)
Definition: Box.H:2200
bool cellCentered() const
Definition: Box.H:404
Box & grow(int i)
grow functions
Definition: Box.H:2268
Box & setBig(const IntVect &bg)
Definition: Box.H:2051
Box & growLo(int idir, int n_cell=1)
Definition: Box.H:2354
Box bdryHi(const Box &b, int dir, int len=1)
Box operator+(const IntVect &v) const
Definition: Box.H:2212
CellIndex
Definition: Box.H:49
IndexType & operator=(const IndexType &rhs)
Definition: Box.H:296
void computeBoxLenNotEmpty()
Definition: Box.H:2019
bool isEmpty() const
{ Comparison Functions}
Definition: Box.H:1863
bool ok() const
Definition: Box.H:1876
bool any() const
Definition: Box.H:362
Box bdryLo(const Box &b, int dir, int len=1)
~Box()
Definition: Box.H:483
bool operator<(const IndexType &t) const
Definition: Box.H:390
Box & growHi(int idir, int n_cell=1)
Definition: Box.H:2385
bool volumeOK() const
Definition: Box.H:1947
int operator[](int dir) const
Definition: Box.H:433
bool lexLT(const IntVect &s) const
Definition: IntVect.H:814