commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::BaseList::iterator Class Reference

#include <BaseList.h>

+ Inheritance diagram for commore::BaseList::iterator:

Public Member Functions

 iterator (const iterator &original)
 
 operator bool () const
 
bool more () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
Byteget_data () const
 
Dummy & get_dummy () const
 
bool operator== (const iterator &iter) const
 
bool operator!= (const iterator &iter) const
 

Protected Member Functions

 iterator (BaseListNode *node, BaseList *cont)
 
BaseListcont ()
 

Protected Attributes

BaseListNode * node_
 
BaseListcont_
 

Friends

class BaseList
 
class const_iterator
 

Detailed Description

Generic non const iterator

Examples:
/examples/coding/List.cpp.

Member Function Documentation

Byte* commore::BaseList::iterator::get_data ( ) const

Get pointer on current element

Todo:
should be protected
Dummy& commore::BaseList::iterator::get_dummy ( ) const

Get reference on current element

Todo:
should be protected
bool commore::BaseList::iterator::more ( ) const

Does iterator reach end of list

Examples:
/examples/coding/List.cpp.
commore::BaseList::iterator::operator bool ( ) const

Does iterator reach end of list

iterator& commore::BaseList::iterator::operator++ ( )

Go to next element

iterator commore::BaseList::iterator::operator++ ( int  )

Go to next element

iterator& commore::BaseList::iterator::operator-- ( )

Go to previous element

iterator commore::BaseList::iterator::operator-- ( int  )

Go to previous element

bool commore::BaseList::iterator::operator== ( const iterator iter) const

Compare iterators


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