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

Method removeRule

src/OpenColorIO/FileRules.cpp:856–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856void FileRules::removeRule(size_t ruleIndex)
857{
858 m_impl->validatePosition(ruleIndex, Impl::DEFAULT_NOT_ALLOWED);
859 m_impl->m_rules.erase(m_impl->m_rules.begin() + ruleIndex);
860}
861
862void FileRules::increaseRulePriority(size_t ruleIndex)
863{

Callers 11

test_insert_ruleMethod · 0.95
test_using_rulesMethod · 0.95
test_copyMethod · 0.95
_remove_named_ruleMethod · 0.45
_remove_named_ruleMethod · 0.45
addRulesAndOverwriteMethod · 0.45
handleRemoveMethod · 0.45
test_insert_removeMethod · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls 3

eraseMethod · 0.80
validatePositionMethod · 0.45
beginMethod · 0.45

Tested by 7

test_insert_ruleMethod · 0.76
test_using_rulesMethod · 0.76
test_copyMethod · 0.76
test_insert_removeMethod · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36