40 int old(writeOptionalEntries);
96 return csearch(keyword, matchOpt).ptr();
106 return const_cast<entry*
>(
csearch(keyword, matchOpt).ptr());
116 return static_cast<bool>(
findEntry(keyword, matchOpt));
136 return csearch(keyword, matchOpt).dictPtr();
156 return csearch(keyword, matchOpt).streamPtr();
An input stream of tokens.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool isNullDict() const noexcept
The dictionary is actually dictionary::null (root dictionary).
static int reportOptional() noexcept
Return the state of reporting optional (default) entries.
const fileName & name() const noexcept
The dictionary name.
const entry * findScoped(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for a scoped entry (const access) with the given keyword.
const dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary pointer if present (and it is a dictionary) otherwise return nullptr...
dictionary()
Default construct, a top-level empty dictionary.
static int writeOptionalEntries
Report optional keywords and values if not present in dictionary.
const entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
const_searcher csearchScoped(const word &keyword, enum keyType::option matchOpt) const
Search using scoping.
friend class entry
Declare friendship with the entry class for IO.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
const dictionary & parent() const noexcept
Return the parent dictionary.
const_searcher csearch(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search dictionary for given keyword.
ITstream * findStream(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return an entry stream if present (and it is a stream) otherwise return nullptr.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
word dictName() const
The local dictionary name (final part of scoped name).
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
option
Enumeration for the data type and search/match modes (bitmask).
A class for handling words, derived from Foam::string.