template class Core::VectorIterator

Overview

Vector iterator. More…

#include <corevector.h>

template <class T>
class VectorIterator
{
public:
    // construction

    VectorIterator (const ConstVector <T>& items);

    // methods

    bool done () const;
    void first ();
    void last ();
    T& next ();
    T& previous ();
    T& peekNext () const;
    bool operator == (const VectorIterator& other) const;
    bool operator != (const VectorIterator& other) const;
};

Detailed Documentation

Vector iterator.

Methods

bool done () const

Check if iteration is done.

void first ()

Seek to first element.

void last ()

Seek to last element.

T& next ()

Seek and return next element.

T& previous ()

Seek and return previous element.

T& peekNext () const

Peek at next element (but don’t seek).