Public Member Functions | Protected Attributes | Friends

RedBack_IteratorType< RecordType > Class Template Reference

Search for all occurrences

Detailed Description

template<typename RecordType>
class RedBack_IteratorType< RecordType >

Implements an efficient ordered data storage.

Definition at line 86 of file kmap.h.

#include <kmap.h>

List of all members.

Public Member Functions

  RedBack_IteratorType ()
  RedBack_IteratorType (RecordType *pRecord)
  RedBack_IteratorType (RedBack_IteratorType< RecordType > const &pV)
RedBack_IteratorType operator++ ()
const RedBack_IteratorType  operator++ (int)
RedBack_IteratorType operator-- ()
const RedBack_IteratorType  operator-- (int)
RecordType const &  operator* () const
RecordType &  operator* ()
RecordType const *  operator-> () const
RecordType *  operator-> ()
bool  operator== (const RedBack_IteratorType &pOther) const
bool  operator!= (const RedBack_IteratorType &pOther) const

Protected Attributes

RecordType *  mRecord

Friends

class  RedBack_ConstIteratorType< RecordType >

Constructor & Destructor Documentation

RedBack_IteratorType ( ) [inline]

Definition at line 89 of file kmap.h.

: mRecord(0) {}
RedBack_IteratorType ( RecordType *  pRecord ) [inline]

Definition at line 90 of file kmap.h.

: mRecord(pRecord) {}
RedBack_IteratorType ( RedBack_IteratorType< RecordType > const &  pV ) [inline]

Definition at line 91 of file kmap.h.

: mRecord(pV.mRecord) {}

Member Function Documentation

RedBack_IteratorType& operator++ ( ) [inline]

Definition at line 94 of file kmap.h.

    {
        K_ASSERT( mRecord != NULL );
        mRecord = mRecord->Successor();
        return *this;
    }
const RedBack_IteratorType operator++ ( int  ) [inline]

Definition at line 102 of file kmap.h.

    {
        RedBack_IteratorType t(*this);
        operator++();
        return t;
    }
RedBack_IteratorType& operator-- ( ) [inline]

Definition at line 110 of file kmap.h.

    {
        K_ASSERT( mRecord );
        mRecord = mRecord->Predecessor();
        return *this;
    }
const RedBack_IteratorType operator-- ( int  ) [inline]

Definition at line 118 of file kmap.h.

    {
        RedBack_IteratorType t(*this);
        operator--();
        return t;
    }
RecordType const& operator* ( ) const [inline]

Definition at line 125 of file kmap.h.

    {
        K_ASSERT( mRecord );

        return *mRecord;
    }
RecordType& operator* ( ) [inline]

Definition at line 132 of file kmap.h.

    {
        K_ASSERT( mRecord );

        return *mRecord;
    }
RecordType const* operator-> ( ) const [inline]

Definition at line 139 of file kmap.h.

    {
        K_ASSERT( mRecord );

        return mRecord;
    }
RecordType* operator-> ( ) [inline]

Definition at line 146 of file kmap.h.

    {
        K_ASSERT( mRecord );

        return mRecord;
    }
bool operator== ( const RedBack_IteratorType< RecordType > &  pOther ) const [inline]

Definition at line 153 of file kmap.h.

    {
        return mRecord == pOther.mRecord;
    }
bool operator!= ( const RedBack_IteratorType< RecordType > &  pOther ) const [inline]

Definition at line 158 of file kmap.h.

    {
        return mRecord != pOther.mRecord;
    }

Friends And Related Function Documentation

friend class RedBack_ConstIteratorType< RecordType > [friend]

Definition at line 164 of file kmap.h.


Member Data Documentation

RecordType* mRecord [protected]

Definition at line 166 of file kmap.h.


The documentation for this class was generated from the following file: