Zen
A cross-platform functional programming language

iteratorbaseD< iterT, K, V > Class Template Reference

base of all dict iterators More...

#include <zbl.hpp>

Inheritance diagram for iteratorbaseD< iterT, K, V >:
iteratorbase< iterT, V >

List of all members.

Public Member Functions

 iteratorbaseD (const iterT &iter)
 Default constructor.
const V & operator++ ()
 Increment iterator.
const V & operator-- ()
 Decrement iterator.
const V & operator* () const
 Return reference to current value.
const K & key () const
 Return reference to current key.
bool find (const K &key) const
 Find key in dictionary.

Private Types

typedef iteratorbase< iterT, V > baseT
 The base class type.

Detailed Description

template<typename iterT, typename K, typename V>
class z::iteratorbaseD< iterT, K, V >

base of all dict iterators


Constructor & Destructor Documentation

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

Default constructor.

Parameters:
iterThe iterator instance

Member Function Documentation

bool find ( const K &  key) const [inline]

Find key in dictionary.

Parameters:
keyKey to find
Returns:
True if found, else false
const K& key ( ) const [inline]

Return reference to current key.

Returns:
Reference to current key
const V& operator* ( ) const [inline]

Return reference to current value.

Returns:
Reference to current value
const V& operator++ ( ) [inline]

Increment iterator.

Returns:
Reference to current value
const V& operator-- ( ) [inline]

Decrement iterator.

Returns:
Reference to current value

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