OpenCurves
0.9
|
An extension of PlotExpression
defining a unary operation.
More...
#include <plotunaryoperator.h>
Public Member Functions | |
PlotUnaryOperator (PlotExpression *operand) | |
Create a binary operator on the given left and right expressions. More... | |
~PlotUnaryOperator () | |
Destructor, destroying the child. | |
void | setOperand (PlotExpression *operand) |
Set the operand expression. More... | |
const PlotExpression * | operand () const |
Get the operand expression. More... | |
virtual BindResult | bind (const QList< PlotInstance * > &curves, PlotBindingTracker &bindTracker, PlotExpressionBindDomain &domain, bool repeatLastBinding=false) |
Binds the operand expression. | |
virtual void | unbind () |
Unbind the operand. | |
bool | explicitTime () const override |
Is the generated expression sensitive to changes in the time domain? More... | |
![]() | |
PlotExpression () | |
Empty constructor. | |
virtual | ~PlotExpression () |
Empty, virtual destructor. | |
virtual double | sample (double sampleTime) const =0 |
Called to generate a sample at sampleTime . More... | |
virtual PlotExpression * | clone () const =0 |
Performs a deep clone of the PlotExpression . More... | |
QString | toString () const |
Converts the PlotExpression into a parseable string form. More... | |
An extension of PlotExpression
defining a unary operation.
This tracks the child and manages binding, but derivations are required to implement the sample()
function.
|
inline |
Create a binary operator on the given left
and right
expressions.
operand | The child expression. |
|
overridevirtual |
Is the generated expression sensitive to changes in the time domain?
Reimplemented from PlotExpression.
|
inline |
Get the operand expression.
Referenced by PlotUnaryOperatorT< std::negate< double > >::clone(), PlotUnaryOperatorT< std::negate< double > >::sample(), and setOperand().
|
inline |
Set the operand expression.
Does not release the existing expression.
operand | The new operand. |
References operand().