64 #ifndef Foam_namedDictionary_H 65 #define Foam_namedDictionary_H 76 class namedDictionary;
78 Istream&
operator>>(Istream&, namedDictionary&);
79 Ostream&
operator<<(Ostream&,
const namedDictionary&);
87 public Tuple2<keyType, dictionary>
A class for handling keywords in dictionaries.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
friend Ostream & operator<<(Ostream &, const namedDictionary &)
namedDictionary()=default
Default construct.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const keyType & keyword() const noexcept
Return keyword.
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
~namedDictionary()=default
Destructor.
A tuple of keyType and dictionary, which can be used when reading named or unnamed dictionary entries...
const dictionary & second() const noexcept
Access the second element.
bool empty() const noexcept
Empty if both keyword and dictionary are empty.
const dictionary & dict() const noexcept
Read-access to the dictionay.
const keyType & first() const noexcept
Access the first element.
friend Istream & operator>>(Istream &, namedDictionary &)
void clear()
Clear keyword and dictionary.