Next: , Up: System_collections


3.2.2.1 System.collections.binary_tree

Implements: see System_object

Represents a binary tree.

Supported constructors:

System.collections.binary_tree()
Creates a new binary tree object.

Supported operators:

[]
Returns the element with the given key.

Supported methods:

count()
Return the number of elements in the tree.
set(key, value)
Sets tree element with key key to value.
remove(key)
Remove given key from tree.
reset()
Move iterator to lowest element in tree (overridden from System.object)
cur()
Return current element in iterator (overridden from System.object). Since this is a dictionary type, this will return an object that has two properties: key and item, corresponding to the object that is the key and the value associated with the key respectively.
next()
Moves iterator to next element (overridden from System.object). Returns false if at end of tree or if reset hasn't been called, true otherwise.