Public Member Functions | Protected Attributes | Friends

RedBack_ConstIteratorType< RecordType > Class Template Reference

Search for all occurrences

Detailed Description

template<typename RecordType>
class RedBack_ConstIteratorType< RecordType >

Definition at line 170 of file kmap.h.

#include <kmap.h>

List of all members.

Public Member Functions

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

Protected Attributes

RecordType const *  mRecord

Friends

class  RedBack_IteratorType< RecordType >

Constructor & Destructor Documentation

Definition at line 173 of file kmap.h.

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

Definition at line 174 of file kmap.h.

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

Definition at line 175 of file kmap.h.

: mRecord(pV.mRecord) {}
RedBack_ConstIteratorType ( RedBack_ConstIteratorType< RecordType > const &  pV ) [inline]

Definition at line 176 of file kmap.h.

: mRecord(pV.mRecord) {}

Member Function Documentation

RedBack_ConstIteratorType& operator++ ( ) [inline]

Definition at line 179 of file kmap.h.

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

Definition at line 187 of file kmap.h.

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

Definition at line 195 of file kmap.h.

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

Definition at line 203 of file kmap.h.

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

Definition at line 210 of file kmap.h.

    {
        K_ASSERT( mRecord );

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

Definition at line 217 of file kmap.h.

    {
        K_ASSERT( mRecord );

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

Definition at line 224 of file kmap.h.

    {
        K_ASSERT( mRecord );

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

Definition at line 231 of file kmap.h.

    {
        K_ASSERT( mRecord );

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

Definition at line 238 of file kmap.h.

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

Definition at line 243 of file kmap.h.

    {
        return mRecord != pOther.mRecord;
    }

Friends And Related Function Documentation

friend class RedBack_IteratorType< RecordType > [friend]

Definition at line 249 of file kmap.h.


Member Data Documentation

RecordType const* mRecord [protected]

Definition at line 251 of file kmap.h.


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