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

Method setOwner

UnitTests/UnitTest_TreeControl/GenericNode.h:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100 template<class NODE, class OWNER>
101 void GenericNode<NODE, OWNER>::setOwner(OWNER* pOwner)
102 {
103 mpOwner = pOwner;
104
105 for (typename VectorGenericNodePtr::iterator Iterator = mChildren.begin(); Iterator != mChildren.end();
106 ++Iterator)
107 (*Iterator)->setOwner(pOwner);
108 }
109
110 template<class NODE, class OWNER>
111 bool GenericNode<NODE, OWNER>::hasAncestor(const NODE* pNode) const

Callers 1

addMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected