MCPcopy Create free account
hub / github.com/ImageEngine/cortex / getValue

Method getValue

src/IECore/CompoundParameter.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194Object *CompoundParameter::getValue()
195{
196 Object *value = Parameter::getValue();
197 CompoundObject *tValue = runTimeCast<CompoundObject>( value );
198 if( !tValue )
199 {
200 return value;
201 }
202
203 CompoundObject::ObjectMap &m = tValue->members();
204 for( ParameterMap::const_iterator it=m_namesToParameters.begin(); it!=m_namesToParameters.end(); it++ )
205 {
206 m[it->first] = it->second->getValue();
207 }
208 return tValue;
209}
210
211const Object *CompoundParameter::getValue() const
212{

Callers 9

testConstDefaultValueMethod · 0.95
testLateValidationMethod · 0.95
testRemoveParametersMethod · 0.95
testDelParametersMethod · 0.95
testSmartSetValueMethod · 0.95
testAdoptChildPresetsMethod · 0.95
getParameterValueMethod · 0.45

Calls 3

getValueFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 7

testConstDefaultValueMethod · 0.76
testLateValidationMethod · 0.76
testRemoveParametersMethod · 0.76
testDelParametersMethod · 0.76
testSmartSetValueMethod · 0.76
testAdoptChildPresetsMethod · 0.76