OpenCurves  0.9
PlotBracketExpression Class Reference

A unary bracket operator, ensuring operation precedence. More...

#include <plotbracketexpression.h>

Inheritance diagram for PlotBracketExpression:
PlotUnaryOperator PlotExpression

Public Member Functions

 PlotBracketExpression (PlotExpression *operand)
 Constructor, wrapping operand in brackets. More...
 
virtual double sample (double sampleTime) const
 Samples the bracketed expression. More...
 
virtual PlotExpressionclone () const
 Clones this expression. More...
 
- 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 unary bracket operator, ensuring operation precedence.

Constructor & Destructor Documentation

PlotBracketExpression::PlotBracketExpression ( PlotExpression operand)
inline

Constructor, wrapping operand in brackets.

Parameters
operandOperand to wrap in brackets.

Member Function Documentation

virtual PlotExpression* PlotBracketExpression::clone ( ) const
virtual

Clones this expression.

Returns
A deep copy of this expression.

Implements PlotExpression.

virtual double PlotBracketExpression::sample ( double  sampleTime) const
virtual

Samples the bracketed expression.

Parameters
sampleTimeTime at which to sample.
Returns
The sample of operand() at time sampleTime.

Implements PlotExpression.


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