45 #ifndef Foam_primitiveEntry_H 46 #define Foam_primitiveEntry_H 62 Ostream& operator<<(Ostream&, const InfoProxy<primitiveEntry>&);
91 const string& varName,
100 const word& functionName,
A class for handling keywords in dictionaries.
virtual ITstream * streamPtr() const noexcept
Return pointer to token stream for this primitive entry.
fileName relativeName() const
Return the name of the stream relative to the current case.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label endLineNumber() const
The line number of the last token in stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual const fileName & name() const
Return the token stream name.
A token holds an item read from Istream.
virtual fileName relativeName() const
Return token stream name relative to the current case.
virtual label endLineNumber() const
The line number of the last token in the entry.
label startLineNumber() const
The line number of the first token in stream.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read...
virtual Istream & read(token &tok) override
Return next token from stream.
A class for handling words, derived from Foam::string.
const tokenList & tokens() const noexcept
The token contents (read-only access)
virtual void write(Ostream &os) const
Write.
virtual ITstream & stream() const
Return token stream for this primitive entry.
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 override
The name of the input token stream.
OBJstream os(runTime.globalPath()/outputName)
virtual const dictionary & dict() const
This entry is not a dictionary, calling this function generates a FatalError.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual label startLineNumber() const
The line number of the first token in the entry.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
A helper class for outputting values to Ostream.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
primitiveEntry(const keyType &key)
Construct from keyword and no tokens.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual bool read(const dictionary &dict, Istream &is)
Read tokens from the given stream.
InfoProxy< primitiveEntry > info() const noexcept
Return info proxy, to print token information to a stream.
An input stream of tokens.
A keyword and a list of tokens is an 'entry'.