Zen
A cross-platform functional programming language
|
Intrinsic buffer type. More...
#include <zbl.hpp>
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. |
Intrinsic buffer type.
buffer | ( | const int & | size | ) | [inline, explicit] |
Default constructor.
size | The initial buffer size |
buffer | ( | const QByteArray & | src | ) | [inline, explicit] |
Constructor.
src | The source buffer instance |
QByteArray& get | ( | ) | [inline] |
Returns the stored value.
const QByteArray& get | ( | ) | const [inline] |
Returns the stored value as a const reference.
int operator[] | ( | const int & | idx | ) | [inline] |
Return reference to value at index.
idx | The index |
int size | ( | ) | const [inline] |
Get the size of the buffer.