栈  0.1
数据结构_第3章
All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
List::dLinkList< T >::iterator Class Reference

#include <dLinkList.h>

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

Public Member Functions

T & operator* ()
 
const T & operator* () const
 
iteratoroperator++ ()
 
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

 iterator (node *p)
 

Protected Attributes

friend dLinkList< T >
 
nodecurrent
 

Detailed Description

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

Definition at line 88 of file dLinkList.h.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 108 of file dLinkList.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 79 of file dLinkList.h.

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

Definition at line 92 of file dLinkList.h.

References List::dLinkList< T >::const_iterator::operator*().

Here is the call graph for this function:

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator--() [1/2]

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

◆ operator--() [2/2]

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

◆ operator==()

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

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 >::iterator::dLinkList< T >
protected

Definition at line 110 of file dLinkList.h.


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