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() [1/2]

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() [2/2]

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

◆ define()

void DenseIntVectSetIterator::define ( const DenseIntVectSet ivs)
inline

◆ operator()()

const IntVect & DenseIntVectSetIterator::operator() ( ) const
inline

References m_current.

◆ ok()

bool DenseIntVectSetIterator::ok ( ) const
inline

◆ operator++()

void DenseIntVectSetIterator::operator++ ( )
inline

◆ begin()

void DenseIntVectSetIterator::begin ( )
inline

◆ end()

void DenseIntVectSetIterator::end ( )
inline

◆ thisIntVect()

void DenseIntVectSetIterator::thisIntVect ( const int  a_linearPos)
private

◆ setStride()

void DenseIntVectSetIterator::setStride ( )
inlineprivate

Member Data Documentation

◆ emptyDenseIntVectSet

DenseIntVectSet DenseIntVectSetIterator::emptyDenseIntVectSet
static

◆ m_iterator

BitSetTrueIterator DenseIntVectSetIterator::m_iterator
private

◆ m_ivsPtr

const DenseIntVectSet* DenseIntVectSetIterator::m_ivsPtr
private

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

◆ m_current

IntVect DenseIntVectSetIterator::m_current
private

Referenced by operator()().

◆ m_stride

IntVect DenseIntVectSetIterator::m_stride
private

Referenced by setStride().

◆ m_prevLinearPos

int DenseIntVectSetIterator::m_prevLinearPos
private

Referenced by begin(), and define().


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