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

#include <__LIST.h>

Inheritance diagram for LIST_T::ConstIterator:
ConstListIteratorBase

Public Member Functions

 ConstIterator ()
 ConstIterator (const NodeBase *_pNode)
 ConstIterator (const ConstIterator &_it)
 ConstIterator (const Iterator &_it)
ConstIteratoroperator= (const ConstIterator &_it)
ConstIteratoroperator++ ()
ConstIterator operator++ (int)
ConstIteratoroperator-- ()
ConstIterator operator-- (int)
CONST_ELEMENT_REF operator* ()
Public Member Functions inherited from ConstListIteratorBase
bool operator== (const ConstListIteratorBase &x) const
bool operator!= (const ConstListIteratorBase &x) const
bool operator== (const ListIteratorBase &x) const
bool operator!= (const ListIteratorBase &x) const

Additional Inherited Members

Protected Attributes inherited from ConstListIteratorBase
const NodeBase__pNode

Detailed Description

Definition at line 82 of file __LIST.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/4]

LIST_T::ConstIterator::ConstIterator ( )
inline

Definition at line 260 of file __LIST.h.

261{
262 __pNode = NULL;
263}
#define NULL
Definition Config.h:340
const NodeBase * __pNode
Definition ListBase.h:44

◆ ConstIterator() [2/4]

LIST_T::ConstIterator::ConstIterator ( const NodeBase * _pNode)
inline

Definition at line 266 of file __LIST.h.

267{
268 __DCL_ASSERT(_pNode != NULL);
269 __pNode = _pNode;
270}
#define __DCL_ASSERT(expr)
Definition Object.h:371

◆ ConstIterator() [3/4]

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

Definition at line 273 of file __LIST.h.

274{
275 __DCL_ASSERT(_it.__pNode != NULL);
276 __pNode = _it.__pNode;
277}

◆ ConstIterator() [4/4]

LIST_T::ConstIterator::ConstIterator ( const Iterator & _it)
inline

Definition at line 280 of file __LIST.h.

281{
282 __DCL_ASSERT(_it.__pNode != NULL);
283 __pNode = _it.__pNode;
284}

Member Function Documentation

◆ operator*()

CONST_ELEMENT_REF LIST_T::ConstIterator::operator* ( )
inline

Definition at line 335 of file __LIST.h.

336{
338 return ((ListNode*)__pNode)->data;
339}

◆ operator++() [1/2]

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

Definition at line 297 of file __LIST.h.

298{
300 __pNode = __pNode->pNext;
301 return *this;
302}

◆ operator++() [2/2]

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

Definition at line 306 of file __LIST.h.

307{
309 const NodeBase* pSaveNode = __pNode;
310 __pNode = __pNode->pNext;
311 return ConstIterator(pSaveNode);
312}

◆ operator--() [1/2]

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

Definition at line 316 of file __LIST.h.

317{
319 __pNode = __pNode->pPrev;
320 return *this;
321}

◆ operator--() [2/2]

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

Definition at line 325 of file __LIST.h.

326{
328 const NodeBase* pSaveNode = __pNode;
329 __pNode = __pNode->pPrev;
330 return ConstIterator(pSaveNode);
331}

◆ operator=()

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

Definition at line 288 of file __LIST.h.

289{
290 __DCL_ASSERT(_it.__pNode != NULL);
291 __pNode = _it.__pNode;
292 return *this;
293}

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