class DynamicTreeArray
MyCpp::Referenced
MyCpp::Object
MyCpp::DynamicTreeArray

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.

Methods
void
resize (unsigned newsize)
Resizes this array.
T&
element (unsigned num)
Provides access to an element with a specified index.
unsigned
getSize ()
Returns the current size of this array.
DynamicTreeArray (unsigned p)
The constructor.
resize

Resizes this array.

void resize (unsigned newsize)
newsize :  The new size of the array.
element

Provides access to an element with a specified index.

T& element (unsigned num)
num :  The index of the element to access.
getSize

Returns the current size of this array.

unsigned getSize()
DynamicTreeArray

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.