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

LayoutIterator Class Reference

An Iterator based on a BoxLayout object. More...

#include <LayoutIterator.H>

Collaboration diagram for LayoutIterator:

Collaboration graph
[legend]
List of all members.

Public Methods

 ~LayoutIterator ()
const LayoutIndexoperator() () const
LayoutIndex i () const
void operator++ ()
void incr ()
bool ok () const
void reset ()
void begin ()
void end ()

Private Methods

 LayoutIterator (const BoxLayout &boxlayout, const int *layoutID)

Private Attributes

const BoxLayout m_layout
unsigned int m_index
LayoutIndex m_current

Friends

class BoxLayout

Detailed Description

An Iterator based on a BoxLayout object.

An Iterator based on a BoxLayout object. It does not support a dereferencing operation(1), since it is intended to work with all of BoxLayouts, DisjointBoxLayouts, BoxLayoutDatas LevelData's, and any object that is built on top of a BoxLayout object. LayoutIterator access the data in a BoxLayout-based object in a NON-data-parallel manner.

BoxLayout-based objects act as the Factory for the LayoutIterator.

(1) STL-speak. not critical for comprehension, but can help people familiar with STL iterators and expecting similar behaviour.


Constructor & Destructor Documentation

LayoutIterator::~LayoutIterator   [inline]
 

LayoutIterator::LayoutIterator const BoxLayout   boxlayout,
const int *    layoutID
[private]
 


Member Function Documentation

void LayoutIterator::begin   [inline]
 

void LayoutIterator::end  
 

skip the iterator to the end.

LayoutIndex LayoutIterator::i   const [inline]
 

void LayoutIterator::incr   [inline]
 

bool LayoutIterator::ok   const [inline]
 

const LayoutIndex & LayoutIterator::operator()   const [inline]
 

void LayoutIterator::operator++   [inline]
 

void LayoutIterator::reset  
 


Friends And Related Function Documentation

friend class BoxLayout [friend]
 


Member Data Documentation

LayoutIndex LayoutIterator::m_current [private]
 

unsigned int LayoutIterator::m_index [private]
 

const BoxLayout LayoutIterator::m_layout [private]
 


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