OpenCurves
0.9
|
An expression to index into an expression. More...
#include <plotindexexpression.h>
Public Member Functions | |
PlotIndexExpression (PlotExpression *indexee, PlotExpression *indexer) | |
Creates an index expression using indexer to index into indexee . More... | |
virtual double | sample (double sampleTime) const |
Samples the index expression for sampleTime . More... | |
virtual PlotExpression * | clone () const |
Clones this expression. More... | |
![]() | |
PlotBinaryOperator (PlotExpression *left, PlotExpression *right) | |
Create a binary operator on the given left and right expressions. More... | |
~PlotBinaryOperator () | |
Destructor, destroying left and right. | |
void | setLeft (PlotExpression *left) |
Set the left branch. More... | |
const PlotExpression * | left () const |
Get the left branch. More... | |
void | setRight (PlotExpression *right) |
Set the right branch. More... | |
const PlotExpression * | right () const |
Get the right branch. More... | |
virtual BindResult | bind (const QList< PlotInstance * > &curves, PlotBindingTracker &bindTracker, PlotExpressionBindDomain &domain, bool repeatLastBinding=false) |
Binds the left and right branch expressions. More... | |
virtual void | unbind () |
Unbind left and right branches. | |
bool | explicitTime () const override |
Is the generated expression sensitive to changes in the time domain? More... | |
![]() | |
PlotExpression () | |
Empty constructor. | |
virtual | ~PlotExpression () |
Empty, virtual destructor. | |
QString | toString () const |
Converts the PlotExpression into a parseable string form. More... | |
An expression to index into an expression.
This essentially uses the results from one expression as the sample time for another. PlotBinaryOperator
is derived for convenience and the right
expression makes the index or sample value, while the left
expression is the indexed expression.
Out of range sample times are returned as a zero value.
|
inline |
|
virtual |
|
virtual |
Samples the index expression for sampleTime
.
This resolves the value of right()
using sampleTime
and uses the result as a sample time into left()
.
sampleTime | The sample time to for right() . |
Implements PlotExpression.