49 #ifndef Foam_expressions_exprResultDelayed_H 50 #define Foam_expressions_exprResultDelayed_H 67 class exprResultDelayed
69 public expressions::exprResult
74 typedef Tuple2<scalar, expressions::exprResult> ValueAtTime;
83 expressions::exprString startExpr_;
86 expressions::exprResult settingResult_;
89 DLList<ValueAtTime> storedValues_;
92 scalar storeInterval_;
183 return (
this != &rhs);
196 Istream&
operator>>(Istream& is, expressions::exprResultDelayed& data);
197 Ostream&
operator<<(Ostream&
os,
const expressions::exprResultDelayed& data);
void setReadValue(const exprResult &val)
Set the readValue with a calculated value.
bool updateReadValue(const scalar &timeVal)
Update the read-value.
exprResultDelayed()
Default construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A polymorphic field/result from evaluating an expression.
void storeValue(const scalar &timeVal)
Add a stored value.
virtual ~exprResultDelayed()=default
Destructor.
const word & name() const noexcept
The expression name.
expressions::exprResult & target()
Simulate virtual templated methods.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
bool operator!=(const exprResultDelayed &rhs) const noexcept
Compare for inequality (need by Ulist)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeDict(Ostream &os) const
OBJstream os(runTime.globalPath()/outputName)
An exprResult with an additional delay before evaluation.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void operator=(const exprResultDelayed &rhs)
Copy assignment.
const expressions::exprString & startupValueExpression() const noexcept
The initial value expression.
TypeNameNoDebug("exprResultDelayed")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual autoPtr< exprResult > clone() const
Clone.