Skip to content

Latest commit

 

History

History
384 lines (208 loc) · 7.68 KB

xtree.md

File metadata and controls

384 lines (208 loc) · 7.68 KB

XTree Diff+GlobalsXTree

Class: XTree <T>

Type parameters

T

Hierarchy

  • XTree

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new XTree(param: IXTreeConstructorParam): XTree

Defined in XTree.ts:271

Parameters:

Name Type
param IXTreeConstructorParam

Returns: XTree

Properties

Op

Op: EditOption | null = null

Defined in XTree.ts:138

edit option

memberof XTree


Private children

children: XTree‹T›[] = []

Defined in XTree.ts:254

children list container

memberof XTree


Optional data

data? : T

Defined in XTree.ts:271

extensible property. you can save original node to this property

memberof XTree


Optional id

id? : undefined | string

Defined in XTree.ts:47


index

index: number

Defined in XTree.ts:79

child index

memberof XTree


label

label: string = ""

Defined in XTree.ts:55

node tag name

memberof XTree


nPtr

nPtr: XTree‹T› | null = null

Defined in XTree.ts:130

node pointer to anther XTree

memberof XTree


pPtr

pPtr: XTree‹T› | null = null

Defined in XTree.ts:262

pointer to parent XTree

memberof XTree


type

type: NodeType

Defined in XTree.ts:63

node type element or text

memberof XTree


value

value: string | null = null

Defined in XTree.ts:71

text value

memberof XTree

Accessors

consistency

get consistency(): number

Defined in XTree.ts:209

readonly

memberof XTree

Returns: number


iMD

get iMD(): string | undefined

Defined in XTree.ts:117

uniquely identify each node

readonly

memberof XTree

Returns: string | undefined


lLabel

get lLabel(): string

Defined in XTree.ts:148

index label

readonly

memberof XTree

Returns: string


nId

get nId(): string

Defined in XTree.ts:159

node indentifer

readonly

memberof XTree

Returns: string


nMD

get nMD(): string

Defined in XTree.ts:89

node message digest

readonly

memberof XTree

Returns: string


negativeMatch

get negativeMatch(): number

Defined in XTree.ts:192

readonly

memberof XTree

Returns: number


positiveMatch

get positiveMatch(): number

Defined in XTree.ts:174

readonly

memberof XTree

Returns: number


tMD

get tMD(): string

Defined in XTree.ts:101

tree message digest

readonly

memberof XTree

Returns: string

Methods

alernativeMetches

alernativeMetches(): object

Defined in XTree.ts:219

Returns: object

  • supportingDegree: number

  • supportingDegreeNode: XTree‹T› | null


append

append(children: XTree‹T› | XTree‹T›[]): void

Defined in XTree.ts:289

Parameters:

Name Type
children XTree‹T› | XTree‹T›[]

Returns: void


forEach

forEach(callback: function): void

Defined in XTree.ts:305

Parameters:

callback: function

▸ (node: XTree‹T›, index: number, thisArg: XTree‹T›): void

Parameters:

Name Type
node XTree‹T›
index number
thisArg XTree‹T›

Returns: void


getChild

getChild(idx: number): XTree‹T› | null

Defined in XTree.ts:315

Parameters:

Name Type
idx number

Returns: XTree‹T› | null


hasChildren

hasChildren(): boolean

Defined in XTree.ts:311

Returns: boolean