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

Function lookupEntry

src/OpenFOAM/db/dictionary/dictionary.C:552–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550
551
552const Foam::entry& Foam::dictionary::lookupEntry
553(
554 const word& keyword,
555 bool recursive,
556 bool patternMatch
557) const
558{
559 const entry* entryPtr = lookupEntryPtr(keyword, recursive, patternMatch);
560
561 if (entryPtr == nullptr)
562 {
563 FatalIOErrorInFunction
564 (
565 *this
566 ) << "keyword " << keyword << " is undefined in dictionary "
567 << name()
568 << exit(FatalIOError);
569 }
570
571 return *entryPtr;
572}
573
574
575Foam::ITstream& Foam::dictionary::lookup

Callers 1

dictionary.CFile · 0.85

Calls 3

lookupEntryPtrFunction · 0.85
nameFunction · 0.50
exitFunction · 0.50

Tested by

no test coverage detected