#include <BaseIVFAB.H>
Inheritance diagram for BaseIVFAB< T >:
Public Methods | |
BaseIVFAB () | |
BaseIVFAB (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) | |
~BaseIVFAB () | |
void | define (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) |
void | setVal (const T &value) |
void | copy (const Box &a_fromBox, const Interval &a_destInterval, const Box &a_toBox, const BaseIVFAB< T > &a_src, const Interval &a_srcInterval) |
int | size (const Box &R, const Interval &comps) const |
void | linearOut (void *buf, const Box &R, const Interval &comps) const |
void | linearIn (void *buf, const Box &R, const Interval &comps) |
void | clear () |
bool | isDefined () const |
int | numVoFs () const |
int | nComp () const |
const IntVectSet & | getIVS () const |
T & | operator() (const VolIndex &a_vof, const int &varlocin) |
const T & | operator() (const VolIndex &a_vof, const int &varlocin) const |
const T * | dataPtr (const int &a_comp) const |
T * | dataPtr (const int &a_comp) |
BaseIVFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile | |
const int * | loVect () const |
const int * | hiVect () const |
const EBGraph & | getEBGraph () const |
Static Public Methods | |
int | preAllocatable () |
Protected Methods | |
int | getIndex (const VolIndex &a_vof, const int &a_comp) const |
Protected Attributes | |
T * | m_dataPtr |
int | m_nComp |
int | m_nVoFs |
IntVect | m_loVect |
IntVect | m_hiVect |
EBGraph | m_ebgraph |
BaseFab< Vector< int > > | m_ivmap |
IntVectSet | m_ivs |
bool | m_isDefined |
Private Methods | |
void | setDefaultValues () |
BaseIVFAB< T > & | operator= (const BaseIVFAB< T > &) |
BaseIVFAB (const BaseIVFAB< T > &) |
|
Default constructor. Constructs an uninitialized IVFAB. You must subsequently call {\bf define} before using this IVFAB. |
|
Defining constructor. Specifies the irregular domain and the number of data components per VoF. The irregular domain must lie completely within the EBGraph. The contents are uninitialized. Calls full define function. |
|
|
|
invalid but necessary for leveldata to compile
|
|
|
|
Remove all data from this BaseIVFAB. You must call {\bf define} again in order to use it. |
|
|
|
Return a pointer to the internal data storage of this IVFAB. |
|
Return a const pointer to the internal data storage of this IVFAB. \ |
|
Full define function. Specifies the irregular domain and the number of data components per VoF. The irregular domain must lie completely within the EBGraph. The contents are uninitialized. If it has previously been defined, the old definition data is overwritten and lost. |
|
|
|
|
|
Return the irregular domain of the BaseIVFAB. |
|
Return a fake "upper right corner of the domain" for use with Fortran. |
|
Tells whether this BaseIVFAB has been defined, either with a constructor or with {\bf define}. It must be initialized in order to access its data. |
|
|
|
|
|
Return a fake "lower left corner of the domain" for use with Fortran. |
|
Return the number of data components of this BaseIVFAB. |
|
Return the number of VoFs in this BaseIVFAB. |
|
|
|
Indexing operator. Return a reference to the contents of this IVFAB, at the specified VoF and data component. The first component is zero, the last is {nvar-1}. The returned object is a modifiable lvalue. |
|
|
|
This stuff required by LevelData in parallel: |
|
|
|
Set a value at every data location. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|