<private> new NameTreeNode(prefix) → {NameTreeNode}
NameTreeNode constructor, NOTE: (typeof URI == "string") && (Name instanceof ndn.Name )
Parameters:
Name | Type | Description |
---|---|---|
prefix |
Name | URI | of the node |
- Source:
Returns:
- Type
- NameTreeNode
Methods
-
<private, static> installNDN(NDN)
-
Install ndn-lib. Only necessary if you're using require("ndn-Classes/src/DataStructures/NameTreeNode.js"), done for you if require("ndn-Classes").NameTree.Node
Parameters:
Name Type Description NDN
Object ndn-lib object - Source:
-
<private> addChild(child) → {NameTreeNode}
-
Add a child node to this one, inserting at the properly sorted index according to canonical namespace rules
Parameters:
Name Type Description child
NameTreeNode | String the node to insert, or the suffix for a new node. - Source:
Returns:
the original node- Type
- NameTreeNode
-
<private> removeChild(child) → {NameTreeNode}
-
Remove a child from this node. This won't derefrence the child node, just remove it from the index
Parameters:
Name Type Description child
NameTreeNode | String the node to remove, or the suffix of that node. - Source:
Returns:
the original node- Type
- NameTreeNode