Scopira  20080306
scopira::tool::iterator_g< T > Class Template Reference

#include <iterator.h>

Public Types

typedef T data_type
 
typedef null_iterator_imp_g< T > null_type
 

Public Member Functions

 iterator_g (void)
 default ctor - can be used as a 0-element iterator or end-iterator comparator
 
 iterator_g (iterator_imp_g< T > *imp)
 initing ctor
 
 iterator_g (const iterator_g &src)
 copy ctor
 
 ~iterator_g ()
 dtor
 
operator* (void)
 get current
 
bool valid (void) const
 better than comparing to a specific EOF iterator
 
bool operator== (const iterator_g &rhs) const
 for comparing to EOF only
 
bool operator== (int x) const
 for comparing to EOF only
 
bool operator!= (const iterator_g &rhs) const
 for comparing to EOF only
 
bool operator!= (int x) const
 for comparing to EOF only
 
iterator_goperator++ (void)
 
iterator_goperator= (const iterator_g &rhs)
 

Detailed Description

template<class T>
class scopira::tool::iterator_g< T >

a virtual iterator spec - this is really an autoptr around a simpler, more specialized iterator-core that is implemented by the developer per use

make a const one?

Author
Aleksander Demko

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