MCPcopy Create free account
hub / github.com/ImageEngine/cortex / prune

Method prune

src/IECore/PathMatcher.cpp:454–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454bool PathMatcher::prune( const std::string &path )
455{
456 if( path.empty() )
457 {
458 return false;
459 }
460 std::vector<IECore::InternedString> tokenizedPath;
461 StringAlgo::tokenize( path, '/', tokenizedPath );
462 return prune( tokenizedPath );;
463}
464
465bool PathMatcher::prune( const std::vector<IECore::InternedString> &path )
466{

Callers 7

testPruneMethod · 0.95
testPruneRootMethod · 0.95
testCopyAndPrunePathMethod · 0.95
writeSetInternalFunction · 0.80
intersectionMethod · 0.80

Calls 3

getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

testPruneMethod · 0.76
testPruneRootMethod · 0.76
testCopyAndPrunePathMethod · 0.76