Chombo + EB  3.2
Public Member Functions | Protected Member Functions | Friends | List of all members
DataIterator Class Reference

#include <DataIterator.H>

Inheritance diagram for DataIterator:
Inheritance graph
[legend]

Public Member Functions

virtual ~DataIterator ()
 
 DataIterator ()
 
 DataIterator (const BoxLayout &a_layout)
 
const DataIndexoperator() () const
 return the index that this iterator is at More...
 
DataIndex i () const
 return a copy of the index that this iterator is at More...
 
int size () const
 
DataIndex operator[] (int ivec) const
 
void clearTime ()
 load balancing function. no-op in serial More...
 
void clearPeak ()
 load balancing function. no-op in serial More...
 
Vector< unsigned long long > getTime () const
 load balancing function. no-op in serial More...
 
Vector< unsigned long long > getPeak () const
 
Vector< BoxgetBoxes ()
 
void enableTime ()
 load balancing function. no-op in serial More...
 
void enablePeak ()
 
void disableTime ()
 load balancing function. no-op in serial More...
 
void disablePeak ()
 
void mergeTime ()
 load balancing function. no-op in serial More...
 
void mergePeak ()
 
- Public Member Functions inherited from LayoutIterator
 LayoutIterator ()
 a null constructed LayoutIterator will return false on ok() More...
 
virtual ~LayoutIterator ()
 
const LayoutIndexoperator() () const
 return the index that this iterator is at More...
 
LayoutIndex i () const
 return a copy of the index that this iterator is at More...
 
virtual void operator++ ()
 move the iterator to the next Box in the layout More...
 
void incr ()
 move the iterator to the next Box in the layout More...
 
virtual bool ok () const
 return true if this iterator is still in its Layout More...
 
void begin ()
 initialize this iterator to the first Box in its Layout More...
 
void reset ()
 same as begin() More...
 
void end ()
 move this iterator to after the last Box in the layout More...
 
const LayoutIndexoperator[] (int ivec) const
 
LayoutIndexoperator[] (int ivec)
 

Protected Member Functions

 DataIterator (const BoxLayout &boxlayout, const int *layoutID)
 
- Protected Member Functions inherited from LayoutIterator
 LayoutIterator (const BoxLayout &a_boxlayout, const int *a_layoutID)
 

Friends

class BoxLayout
 
class DisjointBoxLayout
 
class TimedDataIterator
 

Additional Inherited Members

- Protected Attributes inherited from LayoutIterator
BoxLayout m_layout
 
RefCountedPtr< Vector< LayoutIndex > > m_indicies
 
unsigned int m_current
 

Constructor & Destructor Documentation

◆ ~DataIterator()

virtual DataIterator::~DataIterator ( )
inlinevirtual

◆ DataIterator() [1/3]

DataIterator::DataIterator ( )
inline

◆ DataIterator() [2/3]

DataIterator::DataIterator ( const BoxLayout a_layout)
inline

◆ DataIterator() [3/3]

DataIterator::DataIterator ( const BoxLayout boxlayout,
const int *  layoutID 
)
inlineprotected

Member Function Documentation

◆ operator()()

const DataIndex& DataIterator::operator() ( ) const
inline

return the index that this iterator is at

Aborts if the iterator is not ok()

References LayoutIterator::operator()().

Referenced by i().

◆ i()

DataIndex DataIterator::i ( ) const
inline

return a copy of the index that this iterator is at

Aborts if the iterator is not ok()

References operator()().

◆ size()

int DataIterator::size ( ) const
inline

◆ operator[]()

DataIndex DataIterator::operator[] ( int  ivec) const
inline

◆ clearTime()

void DataIterator::clearTime ( )
inline

load balancing function. no-op in serial

◆ clearPeak()

void DataIterator::clearPeak ( )
inline

load balancing function. no-op in serial

◆ getTime()

Vector<unsigned long long> DataIterator::getTime ( ) const
inline

load balancing function. no-op in serial

References LayoutIterator::m_layout, and BoxLayout::size().

◆ getPeak()

Vector<unsigned long long> DataIterator::getPeak ( ) const
inline

◆ getBoxes()

Vector<Box> DataIterator::getBoxes ( )
inline

◆ enableTime()

void DataIterator::enableTime ( )
inline

load balancing function. no-op in serial

◆ enablePeak()

void DataIterator::enablePeak ( )
inline

◆ disableTime()

void DataIterator::disableTime ( )
inline

load balancing function. no-op in serial

◆ disablePeak()

void DataIterator::disablePeak ( )
inline

◆ mergeTime()

void DataIterator::mergeTime ( )
inline

load balancing function. no-op in serial

◆ mergePeak()

void DataIterator::mergePeak ( )
inline

Friends And Related Function Documentation

◆ BoxLayout

friend class BoxLayout
friend

◆ DisjointBoxLayout

friend class DisjointBoxLayout
friend

◆ TimedDataIterator

friend class TimedDataIterator
friend

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