![]() |
itom
|
iterator through data object More...
#include <dataobj.h>
Public Member Functions | |
| DObjIterator () | |
| default constructor | |
| DObjIterator (DataObject *_dObj, int pos=0) | |
| constructor that sets the iterator to the beginning of the matrix | |
| DObjIterator (const DObjIterator &it) | |
| copy constructor | |
| DObjIterator & | operator= (const DObjIterator &it) |
| copy operator | |
| uchar * | operator* () |
| returns the current matrix element | |
| uchar * | operator[] (int i) |
| returns the i-th matrix element, relative to the current | |
| DObjIterator & | operator+= (int ofs) |
| shifts the iterator forward by the specified number of elements | |
| DObjIterator & | operator-= (int ofs) |
| shifts the iterator backward by the specified number of elements | |
| DObjIterator & | operator-- () |
| decrements the iterator | |
| DObjIterator | operator-- (int) |
| decrements the iterator | |
| DObjIterator & | operator++ () |
| increments the iterator | |
| DObjIterator | operator++ (int) |
| increments the iterator | |
Public Member Functions inherited from ito::DObjConstIterator | |
| DObjConstIterator () | |
| default constructor | |
| DObjConstIterator (const DataObject *_dObj, int pos=0) | |
| constructor that sets the iterator to the beginning of the matrix | |
| DObjConstIterator (const DObjConstIterator &it) | |
| copy constructor | |
| DObjConstIterator & | operator= (const DObjConstIterator &it) |
| copy operator | |
| const uchar * | operator* () const |
| returns the current matrix element | |
| const uchar * | operator[] (int i) const |
| returns the i-th matrix element, relative to the current | |
| DObjConstIterator & | operator+= (int ofs) |
| shifts the iterator forward by the specified number of elements | |
| DObjConstIterator & | operator-= (int ofs) |
| shifts the iterator backward by the specified number of elements | |
| DObjConstIterator & | operator-- () |
| decrements the iterator | |
| DObjConstIterator | operator-- (int) |
| decrements the iterator | |
| DObjConstIterator & | operator++ () |
| increments the iterator | |
| DObjConstIterator | operator++ (int) |
| increments the iterator | |
| bool | operator== (const DObjConstIterator &dObjIt) |
| bool | operator!= (const DObjConstIterator &dObjIt) |
| bool | operator< (const DObjConstIterator &dObjIt) |
| bool | operator> (const DObjConstIterator &dObjIt) |
| bool | operator<= (const DObjConstIterator &dObjIt) |
| bool | operator>= (const DObjConstIterator &dObjIt) |
Additional Inherited Members | |
Protected Member Functions inherited from ito::DObjConstIterator | |
| void | seekAbs (int ofs) |
| moves the iterator to an absolute position | |
| void | seekRel (int ofs) |
| moves the iterator by a certain number of elements | |
Protected Attributes inherited from ito::DObjConstIterator | |
| const DataObject * | dObj |
| reference to the related data object | |
| bool | planeContinuous |
| indicates whether dObj is continuously organized in each plane for faster seek operations | |
| int | elemSize |
| uchar * | ptr |
| pointer to the current value of the iterator | |
| uchar * | sliceStart |
| pointer to the first item within the current continuous slice | |
| uchar * | sliceEnd |
| pointer to the last item within the current continuous slice | |
| int | plane |
| plane index where the iterator is currently positioned | |
iterator through data object
Use this iterator to iterate over all items within the related data object. The order of the iteration is a C-wise ordering, hence row after row for a 2D data object. This iterator allows reading and writing the content of the data object.