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

Method addPath

src/IECore/PathMatcher.cpp:354–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354bool PathMatcher::addPath( const std::string &path )
355{
356 if( path.empty() )
357 {
358 return false;
359 }
360 std::vector<IECore::InternedString> tokenizedPath;
361 StringAlgo::tokenize( path, '/', tokenizedPath );
362 return addPath( tokenizedPath );
363}
364
365bool PathMatcher::addPath( const std::vector<IECore::InternedString> &path )
366{

Callers 15

testAddAndRemovePathsMethod · 0.95
testRemoveEllipsisMethod · 0.95
testEqualityMethod · 0.95
testPathsMethod · 0.95
testPruneRootMethod · 0.95
testIsEmptyMethod · 0.95

Calls 3

getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 15

testAddAndRemovePathsMethod · 0.76
testRemoveEllipsisMethod · 0.76
testEqualityMethod · 0.76
testPathsMethod · 0.76
testPruneRootMethod · 0.76
testIsEmptyMethod · 0.76