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

#include <seqList.h>

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

Public Member Functions

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

Protected Member Functions

 const_iterator (T *p)
 

Protected Attributes

T * current
 
friend seqList< T >
 

Detailed Description

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

Definition at line 30 of file seqList.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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

Definition at line 33 of file seqList.h.

◆ const_iterator() [2/2]

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

Definition at line 52 of file seqList.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 47 of file seqList.h.

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

◆ operator*()

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

Reimplemented in List::seqList< T >::iterator.

Definition at line 34 of file seqList.h.

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

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

Here is the caller graph for this function:

◆ operator++() [1/2]

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

Reimplemented in List::seqList< T >::iterator.

Definition at line 35 of file seqList.h.

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

◆ operator++() [2/2]

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

Definition at line 40 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
inlinevirtual

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 >::const_iterator::seqList< T >
protected

Definition at line 54 of file seqList.h.


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