#include <DomainBlockIterator.h>
Public Types | |
enum | { dimensions = DomainTraits<Dom>::dimensions } |
typedef DomainBlockIterator< Dom > | This_t |
typedef Dom | Domain_t |
typedef Domain_t::OneDomain_t | OneDomain_t |
typedef Domain_t::AskDomain_t | Value_t |
typedef Domain_t::BlockDomain_t | Block_t |
typedef Block_t::OneDomain_t | OneBlock_t |
typedef OneDomain_t::iterator | iterator |
typedef Domain_t::Element_t | Element_t |
Public Member Functions | |
DomainBlockIterator () | |
DomainBlockIterator (const Dom &d) | |
The main DomainBlockIterator stores the given domain, and sets all its 1D iterators to the start. | |
DomainBlockIterator (const This_t &model) | |
~DomainBlockIterator () | |
const Block_t & | operator* () const |
const Block_t * | operator-> () const |
const Value_t & | point () const |
int | index () const |
bool | operator== (const This_t &rhs) const |
bool | operator!= (const This_t &rhs) const |
bool | done () const |
This_t & | operator= (const This_t &model) |
This_t & | operator++ () |
This_t | operator++ (int) |
This iterator returns Interval or Region objects that define the blocks formed as the "cells" between the "vertices" that are the domain points.
Dereferencing a DomainBlockIterator returns an Interval or Region with the current cell. You can also call the following methods on a DomainBlockIterator:
Loc<Dim> point() - returns the block-index of the current block. This is a Loc<Dim> from 0 ... # blocks in each dimension.
int index() - returns an index for the current cell. The index values start at zero and increment by one each time you move to a new cell.
bool done() - returns true if the iterator is done, that is, if it at the end and would compare equal to an "end" iterator.
This is an input-iterator, in the STL sense. It only defines deref, ->, and ++ operators.
typedef DomainBlockIterator<Dom> DomainBlockIterator< Dom >::This_t |
typedef Dom DomainBlockIterator< Dom >::Domain_t |
typedef Domain_t::OneDomain_t DomainBlockIterator< Dom >::OneDomain_t |
typedef Domain_t::AskDomain_t DomainBlockIterator< Dom >::Value_t |
typedef Domain_t::BlockDomain_t DomainBlockIterator< Dom >::Block_t |
typedef Block_t::OneDomain_t DomainBlockIterator< Dom >::OneBlock_t |
typedef OneDomain_t::iterator DomainBlockIterator< Dom >::iterator |
typedef Domain_t::Element_t DomainBlockIterator< Dom >::Element_t |
DomainBlockIterator< Dom >::DomainBlockIterator | ( | ) | [inline] |
DomainBlockIterator< Dom >::DomainBlockIterator | ( | const Dom & | d | ) | [inline] |
The main DomainBlockIterator stores the given domain, and sets all its 1D iterators to the start.
This constructor sets up a "begin" iterator.
References DomainBlockIterator< Dom >::dimensions.
DomainBlockIterator< Dom >::DomainBlockIterator | ( | const This_t & | model | ) | [inline] |
References DomainBlockIterator< Dom >::dimensions.
DomainBlockIterator< Dom >::~DomainBlockIterator | ( | ) | [inline] |
const Block_t& DomainBlockIterator< Dom >::operator* | ( | ) | const [inline] |
References DomainBlockIterator< Dom >::done(), and PAssert.
const Block_t* DomainBlockIterator< Dom >::operator-> | ( | ) | const [inline] |
References DomainBlockIterator< Dom >::done(), and PAssert.
const Value_t& DomainBlockIterator< Dom >::point | ( | ) | const [inline] |
References DomainBlockIterator< Dom >::done(), and PAssert.
Referenced by GridPartition< Dim >::partition().
int DomainBlockIterator< Dom >::index | ( | ) | const [inline] |
References DomainBlockIterator< Dom >::done(), and PAssert.
bool DomainBlockIterator< Dom >::operator== | ( | const This_t & | rhs | ) | const [inline] |
References DomainBlockIterator< Dom >::done().
Referenced by DomainBlockIterator< Dom >::operator!=().
bool DomainBlockIterator< Dom >::operator!= | ( | const This_t & | rhs | ) | const [inline] |
References DomainBlockIterator< Dom >::operator==().
bool DomainBlockIterator< Dom >::done | ( | ) | const [inline] |
This_t& DomainBlockIterator< Dom >::operator= | ( | const This_t & | model | ) | [inline] |
References DomainBlockIterator< Dom >::dimensions.
This_t& DomainBlockIterator< Dom >::operator++ | ( | ) | [inline] |
This_t DomainBlockIterator< Dom >::operator++ | ( | int | ) | [inline] |