Chombo + EB + MF  3.2
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
DenseIntVectSetIterator Class Reference

Iterate over all the 'true' members of a DenseIntVectSet set. More...

#include <DenseIntVectSet.H>

Public Member Functions

 DenseIntVectSetIterator ()
 
 DenseIntVectSetIterator (const DenseIntVectSet &ivs)
 
void define (const DenseIntVectSet &ivs)
 
const IntVectoperator() () const
 
bool ok () const
 
void operator++ ()
 
void begin ()
 
void end ()
 

Static Public Attributes

static DenseIntVectSet emptyDenseIntVectSet
 

Private Member Functions

void thisIntVect (const int a_linearPos)
 
void setStride ()
 

Private Attributes

BitSetTrueIterator m_iterator
 
const DenseIntVectSetm_ivsPtr
 
IntVect m_current
 
IntVect m_stride
 
int m_prevLinearPos
 

Detailed Description

Iterate over all the 'true' members of a DenseIntVectSet set.

This class is used by IVSIterator to implement its iterator when IntVectSet is stored as a DenseIntVectSet.

Constructor & Destructor Documentation

DenseIntVectSetIterator::DenseIntVectSetIterator ( )
inline

After default construction, ok() is false so it looks like an empty bitset but if operator++() is called, it will fail.

DenseIntVectSetIterator::DenseIntVectSetIterator ( const DenseIntVectSet ivs)
inline

Never really used. Normal construction by IntVectSet is default then define().

References m_iterator, ok(), setStride(), and thisIntVect().

Member Function Documentation

void DenseIntVectSetIterator::define ( const DenseIntVectSet ivs)
inline
const IntVect & DenseIntVectSetIterator::operator() ( ) const
inline

References m_current.

bool DenseIntVectSetIterator::ok ( ) const
inline
void DenseIntVectSetIterator::operator++ ( )
inline
void DenseIntVectSetIterator::begin ( )
inline
void DenseIntVectSetIterator::end ( )
inline

References BitSetTrueIterator::end(), and m_iterator.

Referenced by IVSIterator::end().

void DenseIntVectSetIterator::thisIntVect ( const int  a_linearPos)
private
void DenseIntVectSetIterator::setStride ( )
inlineprivate

Member Data Documentation

DenseIntVectSet DenseIntVectSetIterator::emptyDenseIntVectSet
static
BitSetTrueIterator DenseIntVectSetIterator::m_iterator
private
const DenseIntVectSet* DenseIntVectSetIterator::m_ivsPtr
private

Referenced by define(), operator++(), and setStride().

IntVect DenseIntVectSetIterator::m_current
private

Referenced by operator()().

IntVect DenseIntVectSetIterator::m_stride
private

Referenced by setStride().

int DenseIntVectSetIterator::m_prevLinearPos
private

Referenced by begin(), and define().


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