MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / getStringVarNameByIndex

Method getStringVarNameByIndex

src/OpenColorIO/Context.cpp:352–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352const char * Context::getStringVarNameByIndex(int index) const
353{
354 if(index < 0 || index >= static_cast<int>(getImpl()->m_envMap.size()))
355 return "";
356
357 EnvMap::const_iterator iter = getImpl()->m_envMap.begin();
358 for(int count = 0; count<index; ++count) ++iter;
359
360 return iter->first.c_str();
361}
362
363const char * Context::getStringVarByIndex(int index) const
364{

Callers 7

test_interfaceMethod · 0.95
Context.cppFile · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls 3

getImplFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by 6

test_interfaceMethod · 0.76
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36