tool::iterator< Bottom > Struct Template Reference

Base interface for iterators. More...

#include <wipal/tool/iterator.hh>

Inheritance diagram for tool::iterator< Bottom >:

tool::static_base< Bottom >

List of all members.

Public Types

typedef HIDDEN exact_type
Iterator types.
typedef ssize_t difference_type
typedef HIDDEN value_type
typedef value_type * pointer
typedef value_type & reference
typedef std::input_iterator_tag iterator_category

Public Member Functions

Equality checks
bool operator== (const exact_type &) const
bool operator!= (const exact_type &) const
Increment operators
const exact_typeoperator++ ()
exact_type operator++ (int)
Indirections
const value_type & operator* () const
const value_type * operator-> () const
Downcast methods
const exact_typeexact () const
exact_typeexact ()
const exact_typeexact_ptr () const
exact_typeexact_ptr ()

Protected Member Functions

 ~iterator ()


Detailed Description

template<class Bottom>
struct tool::iterator< Bottom >

Base interface for iterators.

iterator provides the standard operators one expects from iterators (== , != , ++ , * , -> ).

To subclass iterator, you must provide the following methods:


Member Typedef Documentation

template<class Bottom>
typedef HIDDEN tool::iterator< Bottom >::exact_type


Constructor & Destructor Documentation

template<class B >
tool::iterator< B >::~iterator (  )  [inline, protected]

Protected destructor: iterator is abstract.


Member Function Documentation

exact_type& tool::static_base< Bottom >::exact (  )  [inherited]

Safely downcast to the exact type as a non-const reference.

const exact_type& tool::static_base< Bottom >::exact (  )  const [inherited]

Safely downcast to the exact type as a const reference.

exact_type* tool::static_base< Bottom >::exact_ptr (  )  [inherited]

Safely downcast to the exact type as a non-const pointer.

const exact_type* tool::static_base< Bottom >::exact_ptr (  )  const [inherited]

Safely downcast to the exact type as a const pointer.


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

Generated on Wed Apr 22 22:52:43 2009 for wipal by  doxygen 1.5.8