|
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 30 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 164 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 144 of file bufferarray.h.
|
private |
The content.
Definition at line 161 of file bufferarray.h.
|
private |
The current number of BufferStores in this BufferArray.
Definition at line 150 of file bufferarray.h.
|
private |
The current number of BufferStores allocated.
Definition at line 156 of file bufferarray.h.