MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / upToDate

Function upToDate

src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C:511–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510
511bool Foam::dynamicCode::upToDate(const SHA1Digest& sha1) const
512{
513 const fileName file = digestFile();
514
515 if (!exists(file, false) || SHA1Digest(IFstream(file)()) != sha1)
516 {
517 return false;
518 }
519
520 return true;
521}
522
523
524bool Foam::dynamicCode::upToDate(const dynamicCodeContext& context) const

Callers

nothing calls this directly

Calls 3

SHA1DigestClass · 0.70
existsFunction · 0.50
IFstreamClass · 0.50

Tested by

no test coverage detected