DCL 4.0
Loading...
Searching...
No Matches
LIST_T::ReverseIterator Class Reference

#include <__LIST.h>

Inheritance diagram for LIST_T::ReverseIterator:
ListIteratorBase

Public Member Functions

 ReverseIterator ()
 ReverseIterator (NodeBase *_pNode)
 ReverseIterator (const ReverseIterator &_it)
ReverseIteratoroperator= (const ReverseIterator &_it)
ReverseIteratoroperator++ ()
ReverseIterator operator++ (int)
ReverseIteratoroperator-- ()
ReverseIterator operator-- (int)
ELEMENT_T & operator* ()
Public Member Functions inherited from ListIteratorBase
bool operator== (const ListIteratorBase &x) const
bool operator!= (const ListIteratorBase &x) const

Friends

class LIST_T
class ReverseConstIterator

Additional Inherited Members

Protected Attributes inherited from ListIteratorBase
NodeBase__pNode

Detailed Description

Definition at line 98 of file __LIST.h.

Constructor & Destructor Documentation

◆ ReverseIterator() [1/3]

LIST_T::ReverseIterator::ReverseIterator ( )
inline

Definition at line 344 of file __LIST.h.

345{
346 __pNode = NULL;
347}
#define NULL
Definition Config.h:340
NodeBase * __pNode
Definition ListBase.h:30

◆ ReverseIterator() [2/3]

LIST_T::ReverseIterator::ReverseIterator ( NodeBase * _pNode)
inline

Definition at line 350 of file __LIST.h.

351{
352 __DCL_ASSERT(_pNode != NULL);
353 __pNode = _pNode;
354}
#define __DCL_ASSERT(expr)
Definition Object.h:371

◆ ReverseIterator() [3/3]

LIST_T::ReverseIterator::ReverseIterator ( const ReverseIterator & _it)
inline

Definition at line 357 of file __LIST.h.

358{
359 __DCL_ASSERT(_it.__pNode != NULL);
360 __pNode = _it.__pNode;
361}

Member Function Documentation

◆ operator*()

ELEMENT_T & LIST_T::ReverseIterator::operator* ( )
inline

Definition at line 412 of file __LIST.h.

413{
415 return ((ListNode*)__pNode)->data;
416}

◆ operator++() [1/2]

LIST_T::ReverseIterator & LIST_T::ReverseIterator::operator++ ( )
inline

Definition at line 374 of file __LIST.h.

375{
377 __pNode = __pNode->pPrev;
378 return *this;
379}

◆ operator++() [2/2]

LIST_T::ReverseIterator LIST_T::ReverseIterator::operator++ ( int )
inline

Definition at line 383 of file __LIST.h.

384{
386 NodeBase* pSaveNode = __pNode;
387 __pNode = __pNode->pPrev;
388 return ReverseIterator(pSaveNode);
389}

◆ operator--() [1/2]

LIST_T::ReverseIterator & LIST_T::ReverseIterator::operator-- ( )
inline

Definition at line 393 of file __LIST.h.

394{
396 __pNode = __pNode->pNext;
397 return *this;
398}

◆ operator--() [2/2]

LIST_T::ReverseIterator LIST_T::ReverseIterator::operator-- ( int )
inline

Definition at line 402 of file __LIST.h.

403{
405 NodeBase* pSaveNode = __pNode;
406 __pNode = __pNode->pNext;
407 return ReverseIterator(pSaveNode);
408}

◆ operator=()

LIST_T::ReverseIterator & LIST_T::ReverseIterator::operator= ( const ReverseIterator & _it)
inline

Definition at line 365 of file __LIST.h.

366{
367 __DCL_ASSERT(_it.__pNode != NULL);
368 __pNode = _it.__pNode;
369 return *this;
370}

◆ LIST_T

friend class LIST_T
friend

Definition at line 112 of file __LIST.h.

◆ ReverseConstIterator

friend class ReverseConstIterator
friend

Definition at line 113 of file __LIST.h.


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