Zen
A cross-platform functional programming language

iteratorbase< iterT, V > Class Template Reference

base of all iterators More...

#include <zbl.hpp>

Inheritance diagram for iteratorbase< iterT, V >:
iteratorbaseD< iterT, K, V > iteratorbaseL< iterT, V > listbase< derT, listT, iterT, V >::iterator

List of all members.

Public Member Functions

 iteratorbase (const iterT &iter)
 Default constructor.
bool begin () const
 Check if iterator is at the beginning of the list.
bool end () const
 Check if iterator is at the end of the list.
bool operator!= (const iteratorbase &src) const
 Check if iterator is not equal to another.
bool operator== (const iteratorbase &src) const
 Check if iterator is equal to another.
void toBack ()
 Move iterator to end of list.

Protected Attributes

iterT _iter
 The iterator instance.

Detailed Description

template<typename iterT, typename V>
class z::iteratorbase< iterT, V >

base of all iterators

Uses CRTP design.


Constructor & Destructor Documentation

iteratorbase ( const iterT &  iter) [inline, explicit]

Default constructor.

Parameters:
iterThe iterator instance

Member Function Documentation

bool begin ( ) const [inline]

Check if iterator is at the beginning of the list.

Returns:
True if iterator is at the beginning of the list
bool end ( ) const [inline]

Check if iterator is at the end of the list.

Returns:
True if iterator is at the end of the list
bool operator!= ( const iteratorbase< iterT, V > &  src) const [inline]

Check if iterator is not equal to another.

Parameters:
srcIterator to compare to
Returns:
True if iterator is not equal to other
bool operator== ( const iteratorbase< iterT, V > &  src) const [inline]

Check if iterator is equal to another.

Parameters:
srcIterator to compare to
Returns:
True if iterator is equal to other

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines