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

Method getRoleName

src/OpenColorIO/Config.cpp:3041–3047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3039}
3040
3041const char * Config::getRoleName(int index) const
3042{
3043 if(index < 0 || index >= (int)getImpl()->m_roles.size()) return "";
3044 StringMap::const_iterator iter = getImpl()->m_roles.begin();
3045 for(int i = 0; i < index; ++i) ++iter;
3046 return iter->first.c_str();
3047}
3048
3049const char * Config::getRoleColorSpace(int index) const
3050{

Callers 9

test_interfaceMethod · 0.95
mainFunction · 0.45
saveFunction · 0.45
refreshMethod · 0.45
mergeInputRolesMethod · 0.45
handleInputOnlyMethod · 0.45
handleRemoveMethod · 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 3

test_interfaceMethod · 0.76
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36