delphirtl

delphirtlDocs


delphirtl / Tree

Class: Tree<T>

TreeNode

TreeNode

Type Parameters

T

Constructors

new Tree()

new Tree<T>(value): Tree<T>

Parameters

value: T

Returns

Tree<T>

Defined in

src/collections.ts:280

Properties

data

data: T

Defined in

src/collections.ts:278


left

left: PTreeNode<T>

Defined in

src/collections.ts:276


right: PTreeNode<T>

Defined in

src/collections.ts:277

Accessors

height

Get Signature

get height(): number

Returns the height of the tree. Call only when this is the root.

Returns

number

Defined in

src/collections.ts:310

Methods

createTree()

static createTree<T>(nodeValues): Tree<T>

Type Parameters

T

Parameters

nodeValues: Iterable<T, any, any>

Returns

Tree<T>

Defined in

src/collections.ts:285