OpenCurves  0.9
plotindexexpression.h
1 //
2 // author Kazys Stepanas
3 //
4 // Copyright (c) CSIRO 2013
5 //
6 #ifndef PLOTINDEXEXPRESSION_H
7 #define PLOTINDEXEXPRESSION_H
8 
9 #include "plotsconfig.h"
10 
11 #include "plotbinaryoperator.h"
12 
21 {
22 public:
27  : PlotBinaryOperator(indexee, indexer)
28  {}
29 
36  virtual double sample(double sampleTime) const;
37 
40  virtual PlotExpression *clone() const;
41 
42 private:
46  virtual QString stringExpression() const;
47 };
48 
49 #endif // PLOTINDEXEXPRESSION_H
virtual PlotExpression * clone() const
Clones this expression.
virtual double sample(double sampleTime) const
Samples the index expression for sampleTime.
An expression to index into an expression.
Definition: plotindexexpression.h:20
An extension of PlotExpression defining a binary operation.
Definition: plotbinaryoperator.h:21
PlotIndexExpression(PlotExpression *indexee, PlotExpression *indexer)
Creates an index expression using indexer to index into indexee.
Definition: plotindexexpression.h:26
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91