NodePool

Default node pool implementation

Members

Functions

get
Node* get()

Obtains a Node instance. If there are currently free nodes, one of these is used, otherwise a new Node instance is created.

newNode
Node* newNode()

Creates a new node. May be overridden by a subclass to use a different allocation method.

recycle
void recycle(Node* node)

Adds node to the list of free nodes.

resetFreeList
void resetFreeList()

Resets the maintained list of free nodes so that the pool becomes empty.

Meta