Zen
A cross-platform functional programming language

buffer::iterator Class Reference

Buffer iterator. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 iterator (const buffer &buf)
 Default constructor.
iteratoroperator++ ()
 Increment iterator.
int operator* ()
 Return reference to current value.
bool end ()
 Check if iterator is at the end of the list.

Private Attributes

const buffer_buf
 The buffer being iterated.
int _pos
 The current position.

Detailed Description

Buffer iterator.

Todo:
Check if the iteratorbase template can be used here.

Constructor & Destructor Documentation

iterator ( const buffer buf) [inline]

Default constructor.

Parameters:
bufThe buffer instance

Member Function Documentation

bool end ( ) [inline]

Check if iterator is at the end of the list.

Returns:
True if iterator is at the end of the list
int operator* ( ) [inline]

Return reference to current value.

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

Increment 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