![]() |
PVL: Parameter Value Language
|
An Iterator provides a random access iterator for a Vectal. More...
#include <Vectal.hh>
Public Member Functions | |
Iterator () | |
Constructs an uninitialized Iterator. | |
Iterator (const Iterator &other_iterator) | |
Constructs a copy of another Iterator. | |
Iterator (const Base_iterator &base_iterator) | |
Constructs an Iterator from a Base_iterator. | |
operator Base_iterator () const | |
Type conversion operator to Base_iterator. | |
bool | operator!= (const Iterator &other_iterator) const |
Inequality operator. | |
T & | operator* () const |
Dereference operator. | |
Iterator | operator+ (int distance) const |
Provides an Iterator moved forward some distance from the position of this Iterator. | |
Iterator & | operator++ () |
Pre-increment operator. | |
Iterator | operator++ (int) |
Post-increment operator. | |
Iterator & | operator+= (int distance) |
Moves the Iterator position forward some distance from the position of this Iterator. | |
Iterator | operator- (int distance) const |
Provides an Iterator moved backward some distance from the position of this Iterator. | |
Iterator::difference_type | operator- (const Iterator &other_iterator) const |
Distance operator. | |
Iterator & | operator-- () |
Pre-decrement operator. | |
Iterator | operator-- (int) |
Post-decrement operator. | |
Iterator & | operator-= (int distance) |
Moves the Iterator position backward some distance from the position of this Iterator. | |
T * | operator-> () const |
Member dereference (pointer) operator. | |
bool | operator< (const Iterator &other_iterator) const |
Less than operator. | |
bool | operator<= (const Iterator &other_iterator) const |
Less than or equal to operator. | |
Iterator & | operator= (const Iterator &other_iterator) |
Assignment operator. | |
bool | operator== (const Iterator &other_iterator) const |
Equality operator. | |
bool | operator> (const Iterator &other_iterator) const |
Greater than operator. | |
bool | operator>= (const Iterator &other_iterator) const |
Greater than or equal to operator. | |
T & | operator[] (size_type index) const |
Array reference operator. | |
Friends | |
class | Const_Iterator |
bool | operator!= (const Base_iterator &base_iterator, const Iterator &other_iterator) |
Inequality operator with a Base_iterator. | |
class | Reverse_Iterator |
An Iterator provides a random access iterator for a Vectal.
An Iterator operates the same as the Base_iterator - an interator over a vector of pointer objects - that provides the backing implementation, except that reference semantics are provided to the object pointed to rather that to the pointer.
Iterator | ( | ) | [inline] |
Iterator | ( | const Base_iterator & | base_iterator | ) | [inline] |
operator Base_iterator | ( | ) | const [inline] |
Type conversion operator to Base_iterator.
The backing Base_iterator for this Iterator is returned.
T& operator* | ( | ) | const [inline] |
Dereference operator.
Reference semantics are implemented, even though the backing Base_iterator operates on pointer objects.
T* operator-> | ( | ) | const [inline] |
Member dereference (pointer) operator.
The semantics for a container of objects of type T are implemented, even though the backing Base_iterator operates on a container of pointers to objects of type T.
T& operator[] | ( | size_type | index | ) | const [inline] |
Iterator& operator++ | ( | ) | [inline] |
Pre-increment operator.
Iterator operator++ | ( | int | ) | [inline] |
Iterator& operator-- | ( | ) | [inline] |
Pre-decrement operator.
Iterator operator-- | ( | int | ) | [inline] |
Iterator& operator+= | ( | int | distance | ) | [inline] |
Iterator operator+ | ( | int | distance | ) | const [inline] |
Iterator& operator-= | ( | int | distance | ) | [inline] |
Iterator operator- | ( | int | distance | ) | const [inline] |
Iterator::difference_type operator- | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator== | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator!= | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator< | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator<= | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator> | ( | const Iterator & | other_iterator | ) | const [inline] |
bool operator>= | ( | const Iterator & | other_iterator | ) | const [inline] |
friend class Const_Iterator [friend] |
friend class Reverse_Iterator [friend] |
bool operator!= | ( | const Base_iterator & | base_iterator, |
const Iterator & | other_iterator | ||
) | [friend] |