std::List_iterator< Type, Ref, Ptr > Struct Template Reference

A list::iterator. More...

#include <stl_list.h>

Inheritance diagram for std::List_iterator< Type, Ref, Ptr >:

Inheritance graph
[legend]
Collaboration diagram for std::List_iterator< Type, Ref, Ptr >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef List_iterator< Type,
Type &, Type * > 
iterator
typedef List_iterator< Type,
const Type &, const Type * > 
const_iterator
typedef List_iterator< Type,
Ref, Ptr > 
Self
typedef Type value_type
typedef Ptr pointer
typedef Ref reference
typedef List_node< Type > Node
typedef size_t size_type
typedef ptrdiff_t difference_type
typedef bidirectional_iterator_tag iterator_category

Public Member Functions

 List_iterator (Node *x)
 List_iterator ()
 List_iterator (const iterator &x)
reference operator * () const
pointer operator-> () const
Selfoperator++ ()
Self operator++ (int)
Selfoperator-- ()
Self operator-- (int)
void M_incr ()
 Walk the list forward.
void M_decr ()
 Walk the list backward.
bool operator== (const List_iterator_base &x) const
bool operator!= (const List_iterator_base &x) const

Public Attributes

List_node_baseM_node
 The only member points to the list element.

Detailed Description

template<typename Type, typename Ref, typename Ptr>
struct std::List_iterator< Type, Ref, Ptr >

A list::iterator.

In addition to being used externally, a list holds one of these internally, pointing to the sequence of data.

Definition at line 144 of file stl_list.h.


Member Function Documentation

void std::List_iterator_base::M_decr  )  [inline, inherited]
 

Walk the list backward.

Definition at line 121 of file stl_list.h.

void std::List_iterator_base::M_incr  )  [inline, inherited]
 

Walk the list forward.

Definition at line 116 of file stl_list.h.


Member Data Documentation

List_node_base* std::List_iterator_base::M_node [inherited]
 

The only member points to the list element.

Definition at line 104 of file stl_list.h.


The documentation for this struct was generated from the following file:
Generated on Fri Sep 16 09:23:04 2005 for libstdc++-v3 Source by  doxygen 1.4.4