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

Method getStringVarByIndex

src/OpenColorIO/Context.cpp:363–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363const char * Context::getStringVarByIndex(int index) const
364{
365 if(index < 0 || index >= static_cast<int>(getImpl()->m_envMap.size()))
366 return "";
367
368 EnvMap::const_iterator iter = getImpl()->m_envMap.begin();
369 for(int count = 0; count<index; ++count) ++iter;
370
371 return iter->second.c_str();
372}
373
374void Context::addStringVars(const ConstContextRcPtr & ctx) noexcept
375{

Callers 5

OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 3

getImplFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by 5

OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64