last update 20 Sep 2009 |
#include <cvrDebugIterator.h>
Public Member Functions | |
debugIterator () | |
debugIterator (const debugIterator &other) | |
template<bool b> | |
debugIterator (const debugIterator< typename enable_if< Container, constIterator &&!b >::type, b > &other) | |
debugIterator & | operator++ () |
debugIterator | operator++ (int) |
debugIterator & | operator-- () |
debugIterator | operator-- (int) |
debugIterator & | operator+= (const difference_type &n) |
debugIterator & | operator-= (const difference_type &n) |
debugIterator | operator+ (const difference_type &n) |
debugIterator | operator- (const difference_type &n) |
reference | operator* () const |
pointer | operator-> () const |
reference | operator[] (const difference_type &n) const |
template<bool constOther> | |
bool | operator== (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
bool | operator!= (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
bool | operator< (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
bool | operator> (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
bool | operator<= (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
bool | operator>= (const debugIterator< Container, constOther > &other) const |
template<bool constOther> | |
difference_type | operator- (const debugIterator< Container, constOther > &other) const |
See those classes for usage examples.
This iterator is compatible with those found in the STL and can thus be used with all of its functions. Specifically, this iterator is also compatible with a simple pointer which is used as a the iterator of the above containers in release mode.
Template parameters:
Container
that has the data, e.g. genericVector<T>. It must provide value_type
.constIterator:
if true a const_iterator is generated, otherwise an iterator cvr::internal::debugIterator< ContainerBase< T >, constIterator >::debugIterator | ( | ) | [inline] |
Default constructor.
cvr::internal::debugIterator< ContainerBase< T >, constIterator >::debugIterator | ( | const debugIterator< ContainerBase< T >, constIterator > & | other | ) | [inline] |
Copy constructor.
cvr::internal::debugIterator< ContainerBase< T >, constIterator >::debugIterator | ( | const debugIterator< typename enable_if< Container, constIterator &&!b >::type, b > & | other | ) | [inline] |
Copy constructor.
Construct a debugIterator with constIterator
== true from other
with constIterator
== false and with the same Container.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator!= | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the pointed position of other
is different from that of this.
reference cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator* | ( | ) | const [inline] |
Get pointed data.
debugIterator cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator+ | ( | const difference_type & | n | ) | [inline] |
Advance (skip) some elements.
Use this operator with care! Note that you can skip the end of the Container, and read (or even worse: write!) out of bounds!
debugIterator cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator++ | ( | int | ) | [inline] |
Advance to next item.
debugIterator& cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator++ | ( | ) | [inline] |
Advance to next item.
debugIterator& cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator+= | ( | const difference_type & | n | ) | [inline] |
Advance (skip) some elements.
Use this operator with care! Note that you can skip the end of the Container, and read (or even worse: write!) out of bounds!
difference_type cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator- | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Difference between this and the other
debugIterator.
debugIterator cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator- | ( | const difference_type & | n | ) | [inline] |
Recede (skip) some elements.
Use this operator with care! Note that you can skip the beginning of the Container, and read (or even worse: write!) out of bounds!
debugIterator cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator-- | ( | int | ) | [inline] |
Recede to previous item.
debugIterator& cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator-- | ( | ) | [inline] |
Recede to previous item.
debugIterator& cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator-= | ( | const difference_type & | n | ) | [inline] |
Recede (skip) some elements.
Use this operator with care! Note that you can skip the beginning of the Container, and read (or even worse: write!) out of bounds!
pointer cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator-> | ( | ) | const [inline] |
Get pointer to data.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator< | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the position to by this is smaller than the position pointed to by other
.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator<= | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the position to by this is smaller or equal than the position pointed to by other
.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator== | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the pointed position of other
is the same as that of this.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator> | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the position to by this is greater than the position pointed to by other
.
bool cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator>= | ( | const debugIterator< Container, constOther > & | other | ) | const [inline] |
Compare if the position to by this is greater or equal than the position pointed to by other
.
reference cvr::internal::debugIterator< ContainerBase< T >, constIterator >::operator[] | ( | const difference_type & | n | ) | const [inline] |
Access the elements relative to the debugIterator position.