50 return (first().empty() && second().empty());
87 obj.dict().name() = is.relativeName();
103 if (obj.keyword().empty() || !obj.dict().empty())
107 obj.dict().writeEntry(obj.keyword(),
os);
bool empty() const noexcept
True if the list is empty.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
fileName relativeName() const
Return the name of the stream relative to the current case.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void putBack(const token &tok)
Put back a token (copy). Only a single put back is permitted.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const keyType & first() const noexcept
const dictionary & second() const noexcept
const fileName & name() const noexcept
The dictionary name.
void writeEntry(Ostream &os) const
Write sub-dictionary with its dictName as its header.
bool read(Istream &is)
Read dictionary from Istream (discards the header). Reads entries until EOF or when the first token i...
A tuple of keyType and dictionary, which can be used when reading named or unnamed dictionary entries...
bool empty() const noexcept
Empty if both keyword and dictionary are empty.
namedDictionary()=default
Default construct.
const keyType & keyword() const noexcept
Return keyword.
void clear()
Clear keyword and dictionary.
const dictionary & dict() const noexcept
Read-access to the dictionay.
A token holds an item read from Istream.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
@ BEGIN_BLOCK
Begin block [isseparator].
@ END_STATEMENT
End entry [isseparator].
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)