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

#include <seqList.h>

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

Public Member Functions

virtual T & operator* ()
 
virtual const T & operator* () const
 
virtual iteratoroperator++ ()
 
iterator operator++ (int)
 
virtual bool operator== (const const_iterator &rhs) const
 
virtual bool operator!= (const const_iterator &rhs) const
 

Protected Member Functions

 iterator (T *p)
 

Protected Attributes

friend seqList< T >
 
T * current
 

Detailed Description

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

Definition at line 57 of file seqList.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
List::seqList< T >::iterator::iterator ( T *  p)
inlineprotected

Definition at line 78 of file seqList.h.

Member Function Documentation

◆ operator!=()

template<typename T >
virtual bool List::seqList< T >::const_iterator::operator!= ( const const_iterator rhs) const
inlinevirtualinherited

Definition at line 47 of file seqList.h.

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

◆ operator*() [1/2]

template<typename T >
virtual T& List::seqList< T >::iterator::operator* ( )
inlinevirtual

Definition at line 60 of file seqList.h.

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

◆ operator*() [2/2]

template<typename T >
virtual const T& List::seqList< T >::iterator::operator* ( ) const
inlinevirtual

Reimplemented from List::seqList< T >::const_iterator.

Definition at line 61 of file seqList.h.

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

Here is the call graph for this function:

◆ operator++() [1/2]

template<typename T >
virtual iterator& List::seqList< T >::iterator::operator++ ( )
inlinevirtual

Reimplemented from List::seqList< T >::const_iterator.

Definition at line 62 of file seqList.h.

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

◆ operator++() [2/2]

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

Definition at line 68 of file seqList.h.

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

◆ operator==()

template<typename T >
virtual bool List::seqList< T >::const_iterator::operator== ( const const_iterator rhs) const
inlinevirtualinherited

Definition at line 46 of file seqList.h.

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

Member Data Documentation

◆ current

◆ seqList< T >

template<typename T >
friend List::seqList< T >::iterator::seqList< T >
protected

Definition at line 80 of file seqList.h.


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