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

Method setType

UnitTests/TestApp/Data.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void Data::setType(DataInfo* _value)
24 {
25 mType = _value;
26
27 mProperties.clear();
28
29 if (mType != nullptr)
30 {
31 const DataInfo::VectorProperty& properties = mType->getProperties();
32 for (DataInfo::VectorProperty::const_iterator property = properties.begin(); property != properties.end();
33 property++)
34 mProperties[(*property)->getName()].clear();
35 }
36 }
37
38 DataInfo* Data::getType()
39 {

Callers 4

createRenderMethod · 0.45
createSceneMethod · 0.45
doActionMethod · 0.45
initialiseMethod · 0.45

Calls 4

getPropertiesMethod · 0.80
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected