First off I've already answered one of my other questions, usesVar() to query if a variable is actually used or not. RTFM!
I noticed in the examples you pass the expression and external variables to the constructor of the derived expression class, I'd like my custom SeExpression to be a variable of another class which means I can't use this constructor. I assume there's no issue with calling setExpr vs supplying the expression via the constructor?
I assume that if a constant is supplied the expression is evaluated once with the result cached in some way, is this what prep() does?
Cheers,
Colin
Hi there -
First off I've already answered one of my other questions, usesVar() to query if a variable is actually used or not. RTFM!
I noticed in the examples you pass the expression and external variables to the constructor of the derived expression class, I'd like my custom SeExpression to be a variable of another class which means I can't use this constructor. I assume there's no issue with calling setExpr vs supplying the expression via the constructor?
I assume that if a constant is supplied the expression is evaluated once with the result cached in some way, is this what prep() does?
Cheers,
Colin