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

#include <seqList.h>

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

Public Member Functions

virtual T & operator* ()
 
virtual const T & operator* () const
 
virtual iteratoroperator++ ()
 
iterator operator++ (int)
 
virtual iteratoroperator-- ()
 
iterator operator-- (int)
 
- Public Member Functions inherited from List::seqList< T >::const_iterator
 const_iterator ()
 
const_iterator operator++ (int)
 
const_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 Member Functions inherited from List::seqList< T >::const_iterator
 const_iterator (T *p)
 

Protected Attributes

friend seqList< T >
 
- Protected Attributes inherited from List::seqList< T >::const_iterator
T * current
 
friend seqList< T >
 

Detailed Description

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

Definition at line 72 of file seqList.h.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 106 of file seqList.h.

Member Function Documentation

◆ operator*() [1/2]

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

Definition at line 75 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 76 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 77 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 83 of file seqList.h.

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

◆ operator--() [1/2]

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

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

Definition at line 90 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 96 of file seqList.h.

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

Member Data Documentation

◆ seqList< T >

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

Definition at line 108 of file seqList.h.


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