|
FreePOOMA
2.4.1
|
A simple iterator class to iterate through all of the points in a given domain of type Dom. More...
#include <DomainIterator.h>
Public Types | |
| enum | { dimensions = DomainTraits<Dom>::dimensions } |
| typedef DomainIterator< Dom > | This_t |
| typedef Dom | Domain_t |
| typedef Domain_t::AskDomain_t | Value_t |
| typedef std::input_iterator_tag | iterator_category |
| typedef Value_t | value_type |
| typedef ptrdiff_t | difference_type |
| typedef const Value_t * | pointer |
| typedef const Value_t & | reference |
Public Member Functions | |
| DomainIterator (const Dom &d, int size=0) | |
| DomainIterator (const This_t &model) | |
| DomainIterator () | |
| const Value_t & | operator* () const |
| const Value_t * | operator-> () 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) |
A simple iterator class to iterate through all of the points in a given domain of type Dom.
The individual points are returned as Loc<Dim>s or Region<Dim,T>'s when the iterator is dereferenced.
This is an input-iterator, in the STL sense. It only defines deref, ->, and ++ operators.
| typedef DomainIterator<Dom> DomainIterator< Dom >::This_t |
| typedef Dom DomainIterator< Dom >::Domain_t |
| typedef Domain_t::AskDomain_t DomainIterator< Dom >::Value_t |
| typedef std::input_iterator_tag DomainIterator< Dom >::iterator_category |
| typedef Value_t DomainIterator< Dom >::value_type |
| typedef ptrdiff_t DomainIterator< Dom >::difference_type |
| typedef const Value_t* DomainIterator< Dom >::pointer |
| typedef const Value_t& DomainIterator< Dom >::reference |
| DomainIterator< Dom >::DomainIterator | ( | const Dom & | d, |
| int | size = 0 |
||
| ) | [inline] |
References DomainIterator< Dom >::dimensions, and PAssert.
| DomainIterator< Dom >::DomainIterator | ( | const This_t & | model | ) | [inline] |
References DomainIterator< Dom >::dimensions, and PAssert.
| DomainIterator< Dom >::DomainIterator | ( | ) | [inline] |
References DomainIterator< Dom >::dimensions.
| const Value_t& DomainIterator< Dom >::operator* | ( | ) | const [inline] |
References DomainIterator< Dom >::done(), and PAssert.
| const Value_t* DomainIterator< Dom >::operator-> | ( | ) | const [inline] |
References DomainIterator< Dom >::done(), and PAssert.
| bool DomainIterator< Dom >::operator== | ( | const This_t & | rhs | ) | const [inline] |
| bool DomainIterator< Dom >::operator!= | ( | const This_t & | rhs | ) | const [inline] |
| bool DomainIterator< Dom >::done | ( | ) | const [inline] |
Referenced by DomainIterator< Dom >::operator*(), and DomainIterator< Dom >::operator->().
| This_t& DomainIterator< Dom >::operator= | ( | const This_t & | model | ) | [inline] |
References DomainIterator< Dom >::dimensions.
| This_t& DomainIterator< Dom >::operator++ | ( | ) | [inline] |
| This_t DomainIterator< Dom >::operator++ | ( | int | ) | [inline] |
1.7.6.1