MCPcopy Create free account
hub / github.com/ReadyTalk/avian / cloneTreeNode

Function cloneTreeNode

src/util.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93inline GcTreeNode* cloneTreeNode(Thread* t, GcTreeNode* n)
94{
95 PROTECT(t, n);
96
97 GcTreeNode* newNode
98 = makeTreeNode(t, getTreeNodeValue(t, n), n->left(), n->right());
99 setTreeNodeRed(t, newNode, treeNodeRed(t, n));
100 return newNode;
101}
102
103GcTreeNode* treeFind(Thread* t,
104 GcTreeNode* tree,

Callers 4

treeFindFunction · 0.85
leftRotateFunction · 0.85
rightRotateFunction · 0.85
treeAddFunction · 0.85

Calls 3

getTreeNodeValueFunction · 0.85
setTreeNodeRedFunction · 0.85
treeNodeRedFunction · 0.85

Tested by

no test coverage detected