The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
utils::smart_list< Data >::iterator Struct Reference

#include <smart_list.hpp>

Inheritance diagram for utils::smart_list< Data >::iterator:
Inheritance graph

Public Member Functions

 iterator ()
 Default constructor. More...
 
 iterator (node_t *ptr)
 Initialized constructor. More...
 
 iterator (const iterator &that)
 Copy constructor. More...
 
 iterator (const iterator_base< Data, true > &that)
 Conversion from reverse_iterator. More...
 
- Public Member Functions inherited from utils::smart_list< Data >::iterator_base< Data, false >
 ~iterator_base ()
 Destructor (Not virtual, since the derived classes are mere shells.) More...
 
iterator_baseoperator= (const iterator_base &that)
 
bool operator== (const iterator_base &that) const
 
bool operator!= (const iterator_base &that) const
 
reference operator* () const
 
pointer operator-> () const
 
iterator_baseoperator++ ()
 
iterator_base operator++ (int)
 
iterator_baseoperator-- ()
 
iterator_base operator-- (int)
 
bool derefable () const
 Test for being in a list, rather than past-the-end (or unassigned). More...
 

Additional Inherited Members

- Public Types inherited from utils::smart_list< Data >::iterator_base< Data, false >
typedef Data value_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef
std::bidirectional_iterator_tag 
iterator_category
 
typedef ptrdiff_t difference_type
 
- Protected Member Functions inherited from utils::smart_list< Data >::iterator_base< Data, false >
 iterator_base ()
 Default constructor. More...
 
 iterator_base (node_t *ptr)
 Initialized constructor. More...
 
 iterator_base (const iterator_base< V, R > &that)
 Conversion constructors. More...
 
 iterator_base (const iterator_base &that)
 Copy constructor (the default overrides the conversion template). More...
 

Detailed Description

template<class Data>
struct utils::smart_list< Data >::iterator

Definition at line 190 of file smart_list.hpp.

Constructor & Destructor Documentation

template<class Data>
utils::smart_list< Data >::iterator::iterator ( )
inline

Default constructor.

Definition at line 192 of file smart_list.hpp.

template<class Data>
utils::smart_list< Data >::iterator::iterator ( node_t ptr)
inlineexplicit

Initialized constructor.

Definition at line 194 of file smart_list.hpp.

template<class Data>
utils::smart_list< Data >::iterator::iterator ( const iterator that)
inline

Copy constructor.

Definition at line 196 of file smart_list.hpp.

template<class Data>
utils::smart_list< Data >::iterator::iterator ( const iterator_base< Data, true > &  that)
inlineexplicit

Conversion from reverse_iterator.

Definition at line 198 of file smart_list.hpp.


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