Zen
A cross-platform functional programming language

buffer Class Reference

Intrinsic buffer type. More...

#include <zbl.hpp>

List of all members.

Classes

class  iterator
 Buffer iterator. More...

Public Member Functions

QByteArray & get ()
 Returns the stored value.
const QByteArray & get () const
 Returns the stored value as a const reference.
int size () const
 Get the size of the buffer.
 buffer (const int &size)
 Default constructor.
 buffer (const QByteArray &src)
 Constructor.
int operator[] (const int &idx)
 Return reference to value at index.

Private Attributes

QByteArray _val
 The value.

Detailed Description

Intrinsic buffer type.


Constructor & Destructor Documentation

buffer ( const int &  size) [inline, explicit]

Default constructor.

Parameters:
sizeThe initial buffer size
buffer ( const QByteArray &  src) [inline, explicit]

Constructor.

Parameters:
srcThe source buffer instance

Member Function Documentation

QByteArray& get ( ) [inline]

Returns the stored value.

Returns:
The value
const QByteArray& get ( ) const [inline]

Returns the stored value as a const reference.

Returns:
The value
int operator[] ( const int &  idx) [inline]

Return reference to value at index.

Parameters:
idxThe index
Returns:
Reference to value at specified index
int size ( ) const [inline]

Get the size of the buffer.

Returns:
The size of the buffer

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