bcn - Binary tree cell node module

Module Description

The bcn module implements a node in an unbalanced binary tree.

Module Words

Node structure

bcn% ( -- n )
Get the required space for a bcn node

Node creation, initialisation and destruction

bcn-init ( x1 x2 bcn1 bcn2 -- )
Initialise the node bcn2 with the parent bcn1, key x2 and data x1

bcn-new ( x1 x2 bcn1 -- bcn2 )
Create a new node on the heap with the parent bcn1, key x2 and data x1

bcn-free ( bcn -- )
Free the node from the heap

Inspection

bcn-dump ( bcn -- )
Dump the node


generated 10-Apr-2008 by ofcfrth-0.5.0