|
cisst-saw
|
#include <vctVarStrideNArrayIterator.h>
Public Types | |
| enum | { DIMENSION = _ownerType::DIMENSION } |
| enum | { DIRECTION = _forward ? +1 : -1 } |
| typedef _ownerType::value_type | _elementType |
| typedef vctVarStrideNArrayConstIterator< _ownerType, _forward > | ThisType |
| typedef _ownerType | OwnerType |
| typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
| VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) | |
| VCT_NARRAY_TRAITS_TYPEDEFS (DIMENSION) | |
| vctVarStrideNArrayConstIterator (void) | |
| vctVarStrideNArrayConstIterator (const OwnerType *container, difference_type index=0) | |
| vctVarStrideNArrayConstIterator (const ThisType &other) | |
| ThisType & | operator= (const ThisType &other) |
| ThisType & | operator++ (void) |
| ThisType | operator++ (int) |
| ThisType & | operator-- (void) |
| ThisType | operator-- (int) |
| ThisType & | operator+= (difference_type difference) |
| ThisType & | operator-= (difference_type difference) |
| difference_type | operator- (const ThisType &other) const |
| const value_type & | operator[] (difference_type index) const |
| const value_type & | operator* (void) const |
| bool | operator== (const ThisType &other) const |
| bool | operator!= (const ThisType &other) const |
| bool | operator< (const ThisType &other) const |
| bool | operator<= (const ThisType &other) const |
| bool | operator> (const ThisType &other) const |
| bool | operator>= (const ThisType &other) const |
Protected Member Functions | |
| void | UpdateElementPointer (void) |
Protected Attributes | |
| const OwnerType * | ContainerOwner |
| difference_type | MetaIndex |
| value_type * | ElementPointer |
| _ownerType | the type of the owner of the container to which this iterator points |
| _forward | set to true for forward iterators, false for reverse iterators |
| typedef _ownerType::value_type vctVarStrideNArrayConstIterator< _ownerType, _forward >::_elementType |
| typedef std::random_access_iterator_tag vctVarStrideNArrayConstIterator< _ownerType, _forward >::iterator_category |
Type (i.e. category) of iterator, i.e. std::random_access_iterator_tag.
| typedef _ownerType vctVarStrideNArrayConstIterator< _ownerType, _forward >::OwnerType |
The type of the owner of the container to which this iterator points.
| typedef vctVarStrideNArrayConstIterator<_ownerType, _forward> vctVarStrideNArrayConstIterator< _ownerType, _forward >::ThisType |
The type of the iterator itself.
|
inline |
Default constructor: create an uninitialized object.
|
inline |
Constructor taking a non const element pointer; the starting position will be the first element of the nArray. Note that only read operations will be performed!
|
inline |
Copy constructor
|
inline |
Complementary operation to operator==.
|
inline |
Dereference (const).
|
inline |
Post-increment.
|
inline |
Pre-increment.
|
inline |
Increment by offset.
| difference | offset to increment by |
|
inline |
Subtraction between iterators returns the number of increments needed for the second operand to reach the first operand, if it is reachable.
|
inline |
Post-decrement.
|
inline |
Pre-decrement.
|
inline |
Decrement by offset.
| difference | offset to decrement by |
|
inline |
Order relation between iterators, required by STL.
|
inline |
|
inline |
Assignment
|
inline |
Equality of iterators, required by STL.
|
inline |
Complementary operation to operator <.
|
inline |
|
inline |
Random access (return const reference).
|
inlineprotected |
Auxiliary method to calculate the correct ElementPointer corresponding to the current MetaIndex. See the complete documentation for a detailed description of this algorithm.
| vctVarStrideNArrayConstIterator< _ownerType, _forward >::VCT_CONTAINER_TRAITS_TYPEDEFS | ( | _elementType | ) |
| vctVarStrideNArrayConstIterator< _ownerType, _forward >::VCT_NARRAY_TRAITS_TYPEDEFS | ( | DIMENSION | ) |
|
protected |
Pointer to the address of the container being referred to by this iterator.
|
protected |
Pointer to the object being referred to by this iterator. It is not declared const, so we will be able to use it in the non const iterator class. But all the methods in vctVarStrideNArrayConstIterator are declared const to protect the data from writing.
|
protected |
Pseudo-index for the iterator. See complete documentation for a thorough discussion of this "meta index".