Go to the documentation of this file.
45 #ifndef primitiveEntry_H
46 #define primitiveEntry_H
86 const string& varName,
95 const word& functionName,
171 virtual bool isStream() const noexcept
206 Ostream&
operator<<(Ostream&
os,
const InfoProxy<primitiveEntry>& ip);
A keyword and a list of tokens is an 'entry'.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
A class for handling file names.
primitiveEntry(const keyType &key)
Construct from keyword and no tokens.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
virtual ITstream & stream() const
Return token stream for this primitive entry.
virtual bool read(const dictionary &dict, Istream &is)
Read tokens from the given stream.
A token holds an item read from Istream.
virtual void write(Ostream &os) const
Write.
autoPtr< entry > clone(const dictionary &) const
Clone the entry.
virtual const dictionary & dict() const
This entry is not a dictionary,.
virtual Istream & read(token &tok)
Return next token from stream.
virtual const fileName & name() const
Get the name of the stream.
virtual bool isStream() const noexcept
Return true - this entry is a stream.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
An input stream of tokens.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual label endLineNumber() const
Return line number of last token in dictionary.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual label startLineNumber() const
Return line number of first token in dictionary.
InfoProxy< primitiveEntry > info() const
Return info proxy.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
fileName relativeName() const
Return the name of the stream relative to the current case.
virtual fileName relativeName() const
Return token stream name relative to the current case.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual const fileName & name() const
Return the token stream name.
virtual fileName & name()
Return token stream name for modification.