class CCL::FastLinkableListIterator

Overview

#include <linkablelist.h>

class FastLinkableListIterator
{
public:
    // construction

    FastLinkableListIterator (const LinkableList& list);
    FastLinkableListIterator (Linkable& startLinkable);

    // methods

    void first ();
    Object* next ();
    Object* previous ();
};

Detailed Documentation

  • Faster than LinkableListIterator, but not compatible to the Iterator interface.

  • Does not allow to remove objects during iteration!!!

  • Usage: call next () or previous () until it returns 0.

Construction

FastLinkableListIterator (Linkable& startLinkable)

start iteration with this linkable