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

Method mapTo

src/IECore/FileSequence.cpp:270–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void FileSequence::mapTo( const FileSequence *other, std::vector< std::pair< std::string, std::string > > &result ) const
271{
272 assert( other );
273 result.clear();
274
275 std::vector< std::string > names, otherNames;
276
277 fileNames( names );
278 other->fileNames( otherNames );
279
280 if ( names.size() != otherNames.size() )
281 {
282 throw InvalidArgumentException( "FileSequence.mapTo() : FileSequence objects contain different numbers of frames." );
283 }
284
285 size_t numNames = names.size();
286
287 result.reserve( numNames );
288 for ( size_t i = 0; i < numNames; i++)
289 {
290 result.push_back( std::pair< std::string, std::string >( names[i], otherNames[i] ) );
291 }
292}
293
294void FileSequence::mapTo( const FileSequence *other, std::map< std::string, std::string > &result ) const
295{

Callers 3

testMappingMethod · 0.95
mvFunction · 0.45
cpFunction · 0.45

Calls 4

InvalidArgumentExceptionFunction · 0.85
clearMethod · 0.45
fileNamesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected