ajtree


Enum AjETreeType

Tree type

Enumerated value(s)

Name
ajETreeAnyAny
ajETreeStrString data
ajETreeSpecialOther special data


Data type AjPTree

Tree data object. Trees are simple linked nodes with back pointers.

Trees can hold any data type. Special functions are available for trees of AjPStr values. In general, these functions are the same. Many are provided for ease of use to save remembering which calls need special cases.

At the top level, a tree has a list of named nodes and a pointer to the top node in the tree.

Constructor(s)

NameDescription
ajTreeNewCreates a new general tree.
ajTreestrNewCreates a new AjPStr tree.

Attributes

NameTypeDescription
Rightstruct AjSTree*Next tree node
Leftstruct AjSTree*Previous tree node
Upstruct AjSTree*Parent tree node
Downstruct AjSTree*First child tree node
NameAjPStrName string
Datavoid*Data value
FreedataAjBool functionComplex data free function
TypeAjEnumTree type (any, string, etc.)
Paddingchar[4]Padding to alignment boundary