PUMA Library Reference Manual
|
#include <Puma/BCList.h>
List of fixed-size buckets.
A bucket is a fixed-size array that is filled sequentially. Each bucket is linked with the previous and next buckets forming a double linked list. Random access to list items is not supported.
Item | The list item type. |
BUCKET_SIZE | Optional size of each bucket. Defaults to 32. |
Classes | |
class | Iterator |
Bucket list sequential iterator. More... | |
Public Member Functions | |
BCList () | |
Construct an empty bucket list. | |
~BCList () | |
Destroy the bucket list. | |
Iterator | begin () |
Get an iterator pointing to the beginning of the list. | |
Iterator | end () const |
Get an iterator pointing to the end of the list. | |
Iterator | add (Item item) |
Add an item to the list. | |
void | reset () |
Reset the list. | |
|
inline |
Construct an empty bucket list.
|
inline |
Destroy the bucket list.
Will not deleted the list items.
|
inline |
Add an item to the list.
item | Them item to add. |
|
inline |
Get an iterator pointing to the beginning of the list.
|
inline |
Get an iterator pointing to the end of the list.
This iterator does not point to the last list item. It is an empty iterator that is intended to be used for comparisons like this:
|
inline |
Reset the list.
Will not delete the list items.