MCPcopy Create free account
hub / github.com/creatale/node-dv / InsertNodes

Function InsertNodes

deps/tesseract/classify/kdtree.cpp:545–552  ·  view source on GitHub ↗

Given a subtree nodes, insert all of its elements into tree. */

Source from the content-addressed store, hash-verified

543
544/** Given a subtree nodes, insert all of its elements into tree. */
545void InsertNodes(KDTREE *tree, KDNODE *nodes) {
546 if (nodes == NULL)
547 return;
548
549 KDStore(tree, nodes->Key, nodes->Data);
550 InsertNodes(tree, nodes->Left);
551 InsertNodes(tree, nodes->Right);
552}
553
554/** Free all of the nodes of a sub tree. */
555void FreeSubTree(KDNODE *sub_tree) {

Callers 1

KDDeleteFunction · 0.85

Calls 1

KDStoreFunction · 0.85

Tested by

no test coverage detected