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

Method hashSet

src/IECoreScene/SceneCache.cpp:2495–2514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2493}
2494
2495void SceneCache::hashSet( const Name &name, IECore::MurmurHash &h ) const
2496{
2497 SampledSceneInterface::hashSet( name, h );
2498
2499 h.append( m_implementation->fileName() );
2500
2501 // todo move path function to Implementation base class
2502 SceneInterface::Path path;
2503 if( ReaderImplementation *reader = ReaderImplementation::reader( m_implementation.get() ) )
2504 {
2505 reader->path( path );
2506 }
2507 else if( WriterImplementation *writer = WriterImplementation::writer( m_implementation.get() ) )
2508 {
2509 writer->path( path );
2510 }
2511
2512 h.append( &path[0], path.size() );
2513 h.append( name );
2514}
2515
2516bool SceneCache::hasObject() const
2517{

Callers 3

testSetHashesMethod · 0.45
testSetsMethod · 0.45
hashSetFunction · 0.45

Calls 6

appendMethod · 0.80
hashSetFunction · 0.50
fileNameMethod · 0.45
getMethod · 0.45
pathMethod · 0.45
sizeMethod · 0.45

Tested by 2

testSetHashesMethod · 0.36
testSetsMethod · 0.36