MCPcopy Create free account
hub / github.com/MyGUI/mygui / removeAll

Method removeAll

UnitTests/UnitTest_TreeControl/GenericNode.h:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169 template<class NODE, class OWNER>
170 void GenericNode<NODE, OWNER>::removeAll(bool bDelete)
171 {
172 while (!mChildren.empty())
173 {
174 NODE* pChild = mChildren.back();
175 mChildren.pop_back();
176
177 pChild->mpParent = nullptr;
178 if (bDelete)
179 delete pChild;
180 }
181
182 invalidate();
183 }
184
185 template<class NODE, class OWNER>
186 void GenericNode<NODE, OWNER>::invalidate()

Callers 1

notifyTreeNodePrepareMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected