OpenCurves  0.9
PlotNegate Class Reference

A PlotExpression which adds the results of two other PlotExpression objects. More...

#include <plotexpressionarithmetic.h>

Inheritance diagram for PlotNegate:
PlotUnaryOperatorT< std::negate< double > > PlotUnaryOperator PlotExpression

Public Member Functions

 PlotNegate (PlotExpression *operand)
 
- Public Member Functions inherited from PlotUnaryOperatorT< std::negate< double > >
 PlotUnaryOperatorT ()
 Default constructor: operand is null.
 
 PlotUnaryOperatorT (PlotExpression *operand)
 Constructor. More...
 
virtual double sample (double sampleTime) const
 Sample the operand and evaluate the Operator. More...
 
const QString & opStr () const
 Return the string used to prefix the operand. More...
 
void setOpStr (const QString &str)
 Sets the string used to prefix the operand. More...
 
virtual PlotExpressionclone () const
 Deep clone.
 
- Public Member Functions inherited from PlotUnaryOperator
 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 PlotExpressionoperand () 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...
 
- Public Member Functions inherited from PlotExpression
 PlotExpression ()
 Empty constructor.
 
virtual ~PlotExpression ()
 Empty, virtual destructor.
 
QString toString () const
 Converts the PlotExpression into a parseable string form. More...
 

Detailed Description

A PlotExpression which adds the results of two other PlotExpression objects.


The documentation for this class was generated from the following file: