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

Method hasRole

src/OpenColorIO/Config.cpp:3034–3039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3032}
3033
3034bool Config::hasRole(const char * role) const
3035{
3036 if (!role || !*role) return false;
3037 const char* rname = LookupRole(getImpl()->m_roles, role);
3038 return rname && *rname;
3039}
3040
3041const char * Config::getRoleName(int index) const
3042{

Callers 15

test_interfaceMethod · 0.95
_on_config_html_readyMethod · 0.45
_update_visualsMethod · 0.45
update_ocio_procMethod · 0.45
color_space_nameMethod · 0.45
loadFunction · 0.45
CreateFromRoleMethod · 0.45
CreateFromSingleRoleMethod · 0.45
refreshMethod · 0.45
refreshMethod · 0.45

Calls 2

LookupRoleFunction · 0.85
getImplFunction · 0.50

Tested by 4

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