A dynamic tree-based pseudo-array.
This is an array that allocates memory by N-element blocks, which are then placed into an N-leaf tree.
| void |
Resizes this array. | |||
| T& |
Provides access to an element with a specified index. | |||
| unsigned |
Returns the current size of this array. | |||
The constructor. |
Resizes this array.
void resize (unsigned newsize)
| newsize : | The new size of the array. |
Provides access to an element with a specified index.
T& element (unsigned num)
| num : | The index of the element to access. |
Returns the current size of this array.
unsigned getSize()
The constructor.
DynamicTreeArray (unsigned p)
| p : | The number of leaves per tree node and, at the same time, the number of elements in a single array block. |