MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / Get_Sub_Node

Method Get_Sub_Node

examples/Utils/b3Quickprof.cpp:98–117  ·  view source on GitHub ↗

* INPUT: * * name - static string pointer to the name of the node we are searching for * * * * WARNINGS: * * All profil

Source from the content-addressed store, hash-verified

96 * to find the named node. *
97 *=============================================================================================*/
98b3ProfileNode* b3ProfileNode::Get_Sub_Node(const char* name)
99{
100 // Try to find this sub node
101 b3ProfileNode* child = Child;
102 while (child)
103 {
104 if (child->Name == name)
105 {
106 return child;
107 }
108 child = child->Sibling;
109 }
110
111 // We didn't find it, so add it
112
113 b3ProfileNode* node = new b3ProfileNode(name, this);
114 node->Sibling = Child;
115 Child = node;
116 return node;
117}
118
119void b3ProfileNode::Reset(void)
120{

Callers 1

Start_ProfileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected