LSeqNode
A node of the LSeq tree.
Static Method Summary
Static Public Methods | ||
public static |
Cast a JSON object to an LSeqNode. |
Constructor Summary
Public Constructor | ||
public |
constructor(triples: Triple[], element: Object) |
Member Summary
Public Members | ||
public get |
Getter to the first child. |
|
public |
children: *[] |
|
public |
e: * |
|
public get |
Check if the node has children. |
|
public |
subCounter: * |
|
public |
t: * |
Private Members | ||
private get |
_hasElement: Boolean: * |
Method Summary
Public Methods | ||
public |
Add a node to the current node. |
|
public |
Comparator between to LSeqNodes. |
|
public |
Remove the node of the tree and all node within path being useless. |
|
public |
The ordered tree can be linearized. |
|
public |
The ordered tree can be linearized into a sequence. |
Private Methods | ||
private |
_binaryIndexOf(searchElement: LSeqNode): Number |
|
private |
|
|
private |
_getIndexes(node: LSeqNode): Number[] |
Static Public Methods
Public Constructors
Public Members
public children: *[] source
public e: * source
public subCounter: * source
public t: * source
Private Members
Public Methods
public add(node: LSeqNode): Boolean source
Add a node to the current node.
Params:
Name | Type | Attribute | Description |
node | LSeqNode | The node to add as a children of this node. |
public compareTo(o: LSeqNode): * source
Comparator between to LSeqNodes.
Params:
Name | Type | Attribute | Description |
o | LSeqNode | The other LSeqNode to compare to. |
Return:
* |
public del(node: LSeqNode): Boolean source
Remove the node of the tree and all node within path being useless.
Params:
Name | Type | Attribute | Description |
node | LSeqNode | the node containing the path to remove |
public get(index: Number): LSeqNode source
The ordered tree can be linearized. This function gets the node at the index in the projected sequence.
Params:
Name | Type | Attribute | Description |
index | Number | The index in the sequence. |
public indexOf(node: LSeqNode): Number source
The ordered tree can be linearized into a sequence. This function get the index of the path represented by the list of triples.
Params:
Name | Type | Attribute | Description |
node | LSeqNode | The node containing -- at least -- the path to the element. |
Private Methods
private _binaryIndexOf(searchElement: LSeqNode): Number source
Params:
Name | Type | Attribute | Description |
searchElement | LSeqNode | The item to search for within the array. |