Home Reference Source
public class | source

InterfaceTree

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

db: *

public

root: *

Method Summary

Public Methods
public

BFS(node: *, level: *): *

public

add(data: *, parent: *): *

public

cloneTree(): *

public
public

delete(value: *): boolean

public
public

levelSearch(node: *, level: *): *

public

async loadTree(key: *, buffer: *, offset: *, includeHashes: *): *

public

matches(tree: *): *

public
public

async saveTree(key: *, includeHashes: *, serialization: *, timeout: *): *

public

search(value: *, nodeStarting: *): *

DFS search for "value"

public

toJSON()

public
public
public
Private Methods
private

_deserializeTree(buffer: *, offset: *, includeHashes: *): *

private

_serializeTree(includeHashes: *, sleepNodes: *): *

Public Constructors

public constructor() source

Public Members

public db: * source

public root: * source

Public Methods

public BFS(node: *, level: *): * source

Params:

NameTypeAttributeDescription
node *
level *

Return:

*

public add(data: *, parent: *): * source

Params:

NameTypeAttributeDescription
data *
parent *

Return:

*

public cloneTree(): * source

Return:

*

public createRoot() source

public delete(value: *): boolean source

Params:

NameTypeAttributeDescription
value *

Return:

boolean

public destroyTree() source

public levelSearch(node: *, level: *): * source

Params:

NameTypeAttributeDescription
node *
level *

Return:

*

public async loadTree(key: *, buffer: *, offset: *, includeHashes: *): * source

Params:

NameTypeAttributeDescription
key *
buffer *
offset *
includeHashes *

Return:

*

public matches(tree: *): * source

Params:

NameTypeAttributeDescription
tree *

Return:

*

public printLevelSearch() source

public async saveTree(key: *, includeHashes: *, serialization: *, timeout: *): * source

Params:

NameTypeAttributeDescription
key *
includeHashes *
serialization *
timeout *

Return:

*

DFS search for "value"

Params:

NameTypeAttributeDescription
value *
nodeStarting *

Return:

*

public toJSON() source

public toString() source

public validateParentsAndChildrenEdges(node: *, parent: *): boolean source

Params:

NameTypeAttributeDescription
node *
parent *

Return:

boolean

public validateRoot(): * source

Return:

*

Private Methods

private _deserializeTree(buffer: *, offset: *, includeHashes: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset *
includeHashes *

Return:

*

private _serializeTree(includeHashes: *, sleepNodes: *): * source

Params:

NameTypeAttributeDescription
includeHashes *
sleepNodes *

Return:

*