Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Scol Standard Library - Binary-tree API. More...
Classes | |
struct | STD_TREE_EASY |
Typedefs | |
typedef struct mkSTD_TREE_EASY | STD_TREE_EASY |
Functions | |
std_treecheckisleft (isLeft) | |
std_treeConv (tree) | |
std_treeConvF (f) | |
std_treeConvI (i) | |
std_treeConvLS (lStr) | |
std_treeConvLS2 (lStr) | |
std_treeConvS (str) | |
std_treeConvTS (tStr) | |
std_treeConvU (u) | |
std_treeGetCB (tree, cbfun) | |
std_treeGetNode (tree) | |
std_treeNew (data, isLeft) | |
Create an easy binary tree. More... | |
std_treenewesay (data, isLeft, flag) | |
Variables | |
typedef | STD_TREE_DATA |
var | STD_TREE_LEFTISSMALLER =0 |
var | STD_TREE_NODE_F =1 |
var | STD_TREE_NODE_I =0 |
var | STD_TREE_NODE_LS =3 |
var | STD_TREE_NODE_LS2 =4 |
var | STD_TREE_NODE_S =2 |
var | STD_TREE_NODE_TS =5 |
var | STD_TREE_NODE_U =99 |
var | STD_TREE_RIGHTISSMALLER =1 |
proto | std_treeGetCB =fun [STD_TREE_EASY fun [u0] I] STD_TREE_EASY |
Scol Standard Library - Binary-tree API.
A binary tree is a tree data structure in which each node has at most two children (referred to as the left child and the right child). This API allows to manipulate these object.
std_treeNew | ( | data | , |
isLeft | |||
) |
Create an easy binary tree.
Prototype : fun [u0 I] STD_TREE_EASY
u0 | : an initial key. |
I | : flag : STD_TREE_LEFTISSMALLER (left tree is smaller) or STD_TREE_RIGHTISSMALLER (right tree is smaller) |
typedef STD_TREE_DATA |