|
plptools
|
An array of bufferStores. More...
#include <bufferarray.h>

Public Member Functions | |
| bufferArray () | |
| constructs a new bufferArray. More... | |
| bufferArray (const bufferArray &a) | |
| Constructs a new bufferArray. More... | |
| ~bufferArray () | |
| Destroys the bufferArray. More... | |
| bufferArray & | operator= (const bufferArray &a) |
| Copys the bufferArray. More... | |
| bool | empty () const |
| Checks if this bufferArray is empty. More... | |
| bufferStore & | operator[] (const unsigned long index) |
| Retrieves the bufferStore at given index. More... | |
| bufferArray | operator+ (const bufferStore &s) |
| Appends a bufferStore to a bufferArray. More... | |
| bufferArray | operator+ (const bufferArray &a) |
| Concatenates two bufferArrays. More... | |
| bufferArray & | operator+= (const bufferStore &s) |
| Appends a bufferStore to current instance. More... | |
| bufferArray & | operator+= (const bufferArray &a) |
| Appends a bufferArray to current instance. More... | |
| bufferStore | pop (void) |
| Removes the first bufferStore. More... | |
| void | push (const bufferStore &b) |
| Inserts a bufferStore at index 0. More... | |
| void | append (const bufferStore &b) |
| Appends a bufferStore. More... | |
| long | length (void) |
| Evaluates the current length. More... | |
| void | clear (void) |
| Empties the bufferArray. More... | |
Private Attributes | |
| long | len |
| The current number of bufferStores in this bufferArray. More... | |
| long | lenAllocd |
| The current number of bufferStores allocated. More... | |
| bufferStore * | buff |
| The content. More... | |
Static Private Attributes | |
| static const long | ALLOC_MIN = 5 |
| Minimum number of bufferStores to allocate. More... | |
An array of bufferStores.
Definition at line 31 of file bufferarray.h.
| bufferArray::bufferArray | ( | ) |
constructs a new bufferArray.
A minimum of ALLOC_MIN elements is allocated.
Definition at line 26 of file bufferarray.cc.
| bufferArray::bufferArray | ( | const bufferArray & | a | ) |
Constructs a new bufferArray.
| a | The initial contents for this array. |
Definition at line 33 of file bufferarray.cc.
| bufferArray::~bufferArray | ( | ) |
Destroys the bufferArray.
Definition at line 42 of file bufferarray.cc.
| void bufferArray::append | ( | const bufferStore & | b | ) |
Appends a bufferStore.
| b | The bufferStore to be appended. |
Definition at line 61 of file bufferarray.cc.
| void bufferArray::clear | ( | void | ) |
Empties the bufferArray.
Definition at line 97 of file bufferarray.cc.
|
inline |
Checks if this bufferArray is empty.
Definition at line 165 of file bufferarray.h.
| long bufferArray::length | ( | void | ) |
Evaluates the current length.
Definition at line 91 of file bufferarray.cc.
| bufferArray bufferArray::operator+ | ( | const bufferArray & | a | ) |
Concatenates two bufferArrays.
| a | The bufferArray to be appended. |
Definition at line 132 of file bufferarray.cc.
| bufferArray bufferArray::operator+ | ( | const bufferStore & | s | ) |
Appends a bufferStore to a bufferArray.
| s | The bufferStore to be appended. |
Definition at line 124 of file bufferarray.cc.
| bufferArray & bufferArray::operator+= | ( | const bufferArray & | a | ) |
Appends a bufferArray to current instance.
| a | The bufferArray to append. |
Definition at line 140 of file bufferarray.cc.
| bufferArray & bufferArray::operator+= | ( | const bufferStore & | s | ) |
Appends a bufferStore to current instance.
| s | The bufferStore to append. |
Definition at line 155 of file bufferarray.cc.
| bufferArray & bufferArray::operator= | ( | const bufferArray & | a | ) |
Copys the bufferArray.
Definition at line 106 of file bufferarray.cc.
| bufferStore & bufferArray::operator[] | ( | const unsigned long | index | ) |
Retrieves the bufferStore at given index.
Definition at line 118 of file bufferarray.cc.
| bufferStore bufferArray::pop | ( | void | ) |
Removes the first bufferStore.
Definition at line 47 of file bufferarray.cc.
| void bufferArray::push | ( | const bufferStore & | b | ) |
Inserts a bufferStore at index 0.
| b | The bufferStore to be inserted. |
Definition at line 76 of file bufferarray.cc.
|
staticprivate |
Minimum number of bufferStores to allocate.
Definition at line 145 of file bufferarray.h.
|
private |
The content.
Definition at line 162 of file bufferarray.h.
|
private |
The current number of bufferStores in this bufferArray.
Definition at line 151 of file bufferarray.h.
|
private |
The current number of bufferStores allocated.
Definition at line 157 of file bufferarray.h.