24 #include "NamespaceHeader.H" 94 offset += ivDiff[1]*ivSize[0] ;
97 offset += ivDiff[2]*ivSize[0]*ivSize[1];
100 offset += ivDiff[3]*ivSize[0]*ivSize[1]*ivSize[2];
103 offset += ivDiff[4]*ivSize[0]*ivSize[1]*ivSize[2]*ivSize[3];
106 offset += ivDiff[5]*ivSize[0]*ivSize[1]*ivSize[2]*ivSize[3]*ivSize[4];
170 resize(a_box, a_comps, a_alias);
253 int a_numcomp)
const;
272 const int*
loVect()
const;
281 const int*
hiVect()
const;
310 const T*
dataPtr(
int a_n = 0)
const;
380 const Box& a_destbox,
403 const Box& a_destbox);
418 void copy(
const Box& a_RegionFrom,
420 const Box& a_RegionTo,
475 virtual int size(
const Box& a_box,
538 static std::string
name();
546 const Box& a_destbox,
582 #include "NamespaceFooter.H" void clear()
Definition: BaseFabImplem.H:186
BaseFab< T > & operator=(const BaseFab< T > &)
void degenerate(BaseFab< T > &a_slice, const SliceSpec &a_sliceSpec) const
Definition: BaseFabImplem.H:666
bool contains(const BaseFab< T > &a_fab) const
{ comparison functions}
Definition: BaseFabImplem.H:316
IntVect size() const
size functions
Definition: Box.H:1814
static Arena * s_Arena
Definition: BaseFab.H:563
#define CH_assert(cond)
Definition: CHArray.H:37
virtual void linearOut(void *a_buf, const Box &a_R, const Interval &a_comps) const
Definition: BaseFabImplem.H:479
void setVal(T a_x, const Box &a_bx, int a_nstart, int a_numcomp)
{ data modification functions}
Definition: BaseFabImplem.H:326
virtual ~BaseFab()
Definition: BaseFabImplem.H:130
BaseFab< T > & shift(const IntVect &a_v)
{ domain modification functions}
Definition: BaseFabImplem.H:443
virtual void linearIn(void *a_buf, const Box &a_R, const Interval &a_comps)
Definition: BaseFabImplem.H:500
Definition: SliceSpec.H:42
bool contains(const IntVect &p) const
Definition: Box.H:1888
static std::string name()
Definition: BaseFabImplem.H:606
Box m_domain
Definition: BaseFab.H:565
const IntVect & bigEnd() const
Definition: BaseFabImplem.H:217
int m_nvar
Definition: BaseFab.H:566
const Box & box() const
Definition: BaseFabImplem.H:202
const int * nCompPtr() const
Definition: BaseFabImplem.H:293
BaseFab()
Definition: BaseFabImplem.H:85
virtual void * linearOut2(void *a_buf, const Box &a_R, const Interval &a_comps) const
Same as linearOut, but returns the current location in the buffer.
Definition: BaseFabImplem.H:486
bool isAliased() const
Definition: BaseFabImplem.H:660
void getVal(T *a_data, const IntVect &a_pos, int a_N, int a_numcomp) const
Definition: BaseFabImplem.H:260
static int preAllocatable()
Definition: BaseFab.H:504
BaseFab< T > & shiftHalf(int a_dir, int a_numHalfs)
Definition: BaseFabImplem.H:458
Structure for passing component ranges in code.
Definition: Interval.H:23
T * m_dptr
Definition: BaseFab.H:570
const IntVect & smallEnd() const
{ Accessors}
Definition: Box.H:1765
virtual void define(const Box &a_box, int a_comps, T *a_alias=NULL)
Definition: BaseFab.H:166
A Virtual Base Class for Dynamic Memory Managemen.
Definition: Arena.H:40
double Real
Definition: REAL.H:33
void define()
Definition: BaseFabImplem.H:524
virtual void performCopy(const BaseFab< T > &a_src, const Box &a_srcbox, int a_srccomp, const Box &a_destbox, int a_destcomp, int a_numcomp)
Definition: BaseFabImplem.H:614
const int * hiVect() const
Definition: BaseFabImplem.H:288
BaseFab< T > & copy(const BaseFab< T > &a_src, const Box &a_srcbox, int a_srccomp, const Box &a_destbox, int a_destcomp, int a_numcomp)
Definition: BaseFabImplem.H:353
Interval interval() const
Definition: BaseFab.H:220
virtual long offset(const IntVect &a_iv, const int &a_ivar) const
{ constructors, destructor and defines}
Definition: BaseFab.H:82
const IntVect & smallEnd() const
Definition: BaseFabImplem.H:212
T * dataPtr(int a_n=0)
Definition: BaseFabImplem.H:300
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
bool m_aliased
Definition: BaseFab.H:571
long m_truesize
Definition: BaseFab.H:568
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
T & operator()(const IntVect &a_p, int a_N)
Definition: BaseFabImplem.H:222
const int * loVect() const
{ Fortran interface functions}
Definition: BaseFabImplem.H:283
int nComp() const
{ accessors}
Definition: BaseFabImplem.H:195
void resize(const Box &a_b, int a_n=1, T *a_alias=NULL)
Definition: BaseFabImplem.H:135
void undefine()
Definition: BaseFabImplem.H:572
static int testBoxAndComp()
regression test
Definition: BaseFabImplem.H:37
void performSetVal(T a_x, const Box &a_bx, int a_nstart, int a_numcomp)
Definition: BaseFabImplem.H:633
static int test()
regression test
Definition: BaseFabImplem.H:75
virtual void * linearIn2(void *a_buf, const Box &a_R, const Interval &a_comps)
same as linearIn, but returns the current location in the buffer
Definition: BaseFabImplem.H:509
IntVect size() const
Definition: BaseFabImplem.H:207
long m_numpts
Definition: BaseFab.H:567