栈  0.1
数据结构_第3章
List::dLinkList< T >::const_iterator Class Reference

#include <dLinkList.h>

Inheritance diagram for List::dLinkList< T >::const_iterator:
[legend]
Collaboration diagram for List::dLinkList< T >::const_iterator:
[legend]

Public Member Functions

 const_iterator ()
 
const T & operator* () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
bool operator== (const const_iterator &rhs) const
 
bool operator!= (const const_iterator &rhs) const
 

Protected Member Functions

 const_iterator (node *p)
 

Protected Attributes

nodecurrent
 
friend dLinkList< T >
 

Detailed Description

template<typename T>
class List::dLinkList< T >::const_iterator

Definition at line 51 of file dLinkList.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T >
List::dLinkList< T >::const_iterator::const_iterator ( )
inline

Definition at line 54 of file dLinkList.h.

◆ const_iterator() [2/2]

template<typename T >
List::dLinkList< T >::const_iterator::const_iterator ( node p)
inlineprotected

Definition at line 83 of file dLinkList.h.

Member Function Documentation

◆ operator!=()

template<typename T >
bool List::dLinkList< T >::const_iterator::operator!= ( const const_iterator rhs) const
inline

Definition at line 79 of file dLinkList.h.

References List::dLinkList< T >::const_iterator::current.

◆ operator*()

template<typename T >
const T& List::dLinkList< T >::const_iterator::operator* ( ) const
inline

Definition at line 55 of file dLinkList.h.

References List::dLinkList< T >::const_iterator::current, and List::dLinkList< T >::node::data.

Referenced by List::dLinkList< T >::iterator::operator*().

Here is the caller graph for this function:

◆ operator++() [1/2]

template<typename T >
const_iterator& List::dLinkList< T >::const_iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
const_iterator List::dLinkList< T >::const_iterator::operator++ ( int  )
inline

◆ operator--() [1/2]

template<typename T >
const_iterator& List::dLinkList< T >::const_iterator::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T >
const_iterator List::dLinkList< T >::const_iterator::operator-- ( int  )
inline

◆ operator==()

template<typename T >
bool List::dLinkList< T >::const_iterator::operator== ( const const_iterator rhs) const
inline

Definition at line 78 of file dLinkList.h.

References List::dLinkList< T >::const_iterator::current.

Member Data Documentation

◆ current

◆ dLinkList< T >

template<typename T >
friend List::dLinkList< T >::const_iterator::dLinkList< T >
protected

Definition at line 85 of file dLinkList.h.


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