Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IVSIterator Class Reference

Iterator for an IntVectSet. More...

#include <IntVectSet.H>

Collaboration diagram for IVSIterator:

Collaboration graph
[legend]
List of all members.

Public Methods

 IVSIterator ()
 IVSIterator (const IntVectSet &ivs)
 ~IVSIterator ()
void define (const IntVectSet &ivs)
const IntVectoperator() () const
const IntVectiv () const
bool ok () const
void operator++ ()
void incr ()
void begin ()
void reset ()
void end ()

Private Attributes

bool m_isdense
DenseIntVectSetIterator m_dense
TreeIntVectSetIterator m_tree

Detailed Description

Iterator for an IntVectSet.

IVSIterator iterates over every point (IntVect) in an IntVectSet. It has exactly the same syntax and sematic as BoxIterator. Typical usage:\

\begin{verbatim} IntVectSet ivs; ... IVSIterator ivsit (ivs); for (ivsit.begin(); ivsit.ok(); ++ivsit) { IntVect iv = ivsit(); (do operations involving iv) } \end{verbatim}


Constructor & Destructor Documentation

IVSIterator::IVSIterator   [inline]
 

IVSIterator::IVSIterator const IntVectSet   ivs
 

IVSIterator::~IVSIterator   [inline]
 


Member Function Documentation

void IVSIterator::begin   [inline]
 

void IVSIterator::define const IntVectSet   ivs
 

void IVSIterator::end   [inline]
 

void IVSIterator::incr   [inline]
 

const IntVect& IVSIterator::iv   const [inline]
 

bool IVSIterator::ok   const [inline]
 

const IntVect & IVSIterator::operator()   const [inline]
 

void IVSIterator::operator++   [inline]
 

void IVSIterator::reset   [inline]
 


Member Data Documentation

DenseIntVectSetIterator IVSIterator::m_dense [private]
 

bool IVSIterator::m_isdense [private]
 

TreeIntVectSetIterator IVSIterator::m_tree [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:22 2003 for EBChombo by doxygen1.2.16