C3DTransformation::const_iterator Class Reference

#include <mia/3d/transform.hh>

Inherits forward_iterator_tag.

Public Member Functions

 const_iterator ()
 
 const_iterator (const const_iterator &other)
 Copy constructor. More...
 
 const_iterator (iterator_impl *holder)
 initialize the iterator with the actual worker object More...
 
const C3DBoundsget_size () const
 
const C3DFVectoroperator* () const
 return current value of the transformation More...
 
const_iteratoroperator++ ()
 prefix increment More...
 
const_iterator operator++ (int)
 postfix increment More...
 
const C3DFVectoroperator-> () const
 return pointer to current value of the transformation More...
 
const_iteratoroperator= (const const_iterator &other)
 assignment operator More...
 
const C3DBoundspos () const
 return the current position in 3D space More...
 

Friends

EXPORT_3D bool operator== (const C3DTransformation::const_iterator &a, const C3DTransformation::const_iterator &b)
 

Detailed Description

This is an iterator that iterates over the grid of the domain where the transformation is defined. It implements the forward_iterator model.

Todo:

make position readable from outside

add iteration over sub-domains

Definition at line 132 of file 3d/transform.hh.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

C3DTransformation::const_iterator::const_iterator ( )

◆ const_iterator() [2/3]

C3DTransformation::const_iterator::const_iterator ( const const_iterator other)

Copy constructor.

◆ const_iterator() [3/3]

C3DTransformation::const_iterator::const_iterator ( iterator_impl holder)

initialize the iterator with the actual worker object

Member Function Documentation

◆ get_size()

const C3DBounds& C3DTransformation::const_iterator::get_size ( ) const
Returns
the size of the supported domain

◆ operator*()

const C3DFVector& C3DTransformation::const_iterator::operator* ( ) const

return current value of the transformation

◆ operator++() [1/2]

const_iterator& C3DTransformation::const_iterator::operator++ ( )

prefix increment

◆ operator++() [2/2]

const_iterator C3DTransformation::const_iterator::operator++ ( int  )

postfix increment

◆ operator->()

const C3DFVector* C3DTransformation::const_iterator::operator-> ( ) const

return pointer to current value of the transformation

◆ operator=()

const_iterator& C3DTransformation::const_iterator::operator= ( const const_iterator other)

assignment operator

◆ pos()

const C3DBounds& C3DTransformation::const_iterator::pos ( ) const

return the current position in 3D space

Friends And Related Function Documentation

◆ operator==

EXPORT_3D bool operator== ( const C3DTransformation::const_iterator a,
const C3DTransformation::const_iterator b 
)
friend

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