| 756 | |
| 757 | |
| 758 | const Foam::dictionary& Foam::dictionary::optionalSubDict |
| 759 | ( |
| 760 | const word& keyword |
| 761 | ) const |
| 762 | { |
| 763 | const entry* entryPtr = lookupEntryPtr(keyword, false, true); |
| 764 | |
| 765 | if (entryPtr) |
| 766 | { |
| 767 | return entryPtr->dict(); |
| 768 | } |
| 769 | else |
| 770 | { |
| 771 | return *this; |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | |
| 776 | Foam::wordList Foam::dictionary::toc() const |
no test coverage detected