优先级队列  0.1
数据结构_第7章
List::seqList< T >::const_iterator Class Reference

#include <seqList.h>

Inheritance diagram for List::seqList< T >::const_iterator:
Collaboration diagram for List::seqList< T >::const_iterator:

Public Member Functions

 const_iterator ()
 
virtual const T & operator* () const
 
virtual const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
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 33 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 36 of file seqList.h.

◆ const_iterator() [2/2]

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

Definition at line 67 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 62 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 37 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 38 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 43 of file seqList.h.

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

◆ 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 49 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 54 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 61 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 69 of file seqList.h.


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