DGtal 1.4.0
|
#include <DGtal/images/ImageContainerBySTLVector.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef Value | value_type |
typedef ptrdiff_t | difference_type |
typedef Value * | pointer |
typedef Value & | reference |
Public Member Functions | |
SpanIterator (const Point &p, const Dimension aDim, ImageContainerBySTLVector< Domain, Value > *aMap) | |
void | setValue (const Value aVal) |
const Value & | operator* () |
bool | operator== (const SpanIterator &it) const |
bool | operator!= (const SpanIterator &it) const |
void | next () |
void | prev () |
SpanIterator & | operator++ () |
SpanIterator & | operator++ (int) |
SpanIterator & | operator-- () |
SpanIterator & | operator-- (int) |
Private Attributes | |
Size | myPos |
Current Point in the domain. | |
ImageContainerBySTLVector< Domain, Value > * | myMap |
Copy of the underlying images. | |
Dimension | myDimension |
Dimension on which the iterator must iterate. | |
Size | myShift |
Padding variable. | |
Friends | |
class | ImageContainerBySTLVector< Domain, Value > |
Specific SpanIterator on ImageContainerBySTLVector.
Definition at line 307 of file ImageContainerBySTLVector.h.
typedef ptrdiff_t DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::difference_type |
Definition at line 317 of file ImageContainerBySTLVector.h.
typedef std::bidirectional_iterator_tag DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::iterator_category |
Definition at line 315 of file ImageContainerBySTLVector.h.
typedef Value* DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::pointer |
Definition at line 318 of file ImageContainerBySTLVector.h.
typedef Value& DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::reference |
Definition at line 319 of file ImageContainerBySTLVector.h.
typedef Value DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::value_type |
Definition at line 316 of file ImageContainerBySTLVector.h.
|
inline |
Constructor.
p | starting point of the SpanIterator |
aDim | specifies the dimension along which the iterator will iterate |
aMap | pointer to the imageContainer |
Definition at line 328 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::linearized(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myDimension, DGtal::ImageContainerBySTLVector< TDomain, TValue >::myExtent, DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myShift.
|
inline |
Implements the next() method: we move on step forward.
Definition at line 391 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myShift.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator++().
|
inline |
Operator !=
Definition at line 381 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos.
|
inline |
operator* on SpanIterators.
Definition at line 359 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myMap, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos.
|
inline |
Operator ++ (++it)
Definition at line 412 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::next().
|
inline |
Operator ++ (it++)
Definition at line 423 of file ImageContainerBySTLVector.h.
|
inline |
Operator – (–it)
Definition at line 435 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::prev().
|
inline |
Operator – (it–)
Definition at line 446 of file ImageContainerBySTLVector.h.
|
inline |
Operator ==.
Definition at line 370 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos.
|
inline |
Implements the prev() method: we move on step backward.
Definition at line 401 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myShift.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator--().
|
inline |
Set a value at a SpanIterator position.
aVal | the value to set. |
Definition at line 348 of file ImageContainerBySTLVector.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::myPos.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::setValue().
|
friend |
Definition at line 530 of file ImageContainerBySTLVector.h.
|
private |
Dimension on which the iterator must iterate.
Definition at line 461 of file ImageContainerBySTLVector.h.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::SpanIterator().
|
private |
Copy of the underlying images.
Definition at line 458 of file ImageContainerBySTLVector.h.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator*().
|
private |
Current Point in the domain.
Definition at line 455 of file ImageContainerBySTLVector.h.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::next(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator!=(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator*(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::operator==(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::prev(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::setValue(), and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::SpanIterator().
|
private |
Padding variable.
Definition at line 464 of file ImageContainerBySTLVector.h.
Referenced by DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::next(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::prev(), and DGtal::ImageContainerBySTLVector< TDomain, TValue >::SpanIterator::SpanIterator().