* INPUT: * * name - static string pointer to the name of the node we are searching for * * * * WARNINGS: * * All profil
| 96 | * to find the named node. * |
| 97 | *=============================================================================================*/ |
| 98 | b3ProfileNode* 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 | |
| 119 | void b3ProfileNode::Reset(void) |
| 120 | { |