Node that references a variable. More...
#include <SeExprNode.h>
Classes | |
struct | Data |
base class for custom instance data More... | |
Public Member Functions | |
SeExprVarNode (const SeExpression *expr, const char *name) | |
virtual bool | prep (bool wantVec) |
virtual void | eval (SeVec3d &result) const |
Evaluation method. Note: v[1] and v[2] are undefined if !isVec. | |
const char * | name () const |
void | setData (Data *data) const |
Data * | getData () const |
Private Attributes | |
const char * | _name |
SeExprVarRef * | _var |
Data * | _data |
Node that references a variable.
Definition at line 375 of file SeExprNode.h.
SeExprVarNode::SeExprVarNode | ( | const SeExpression * | expr, | |
const char * | name | |||
) | [inline] |
Definition at line 378 of file SeExprNode.h.
References SeExpression::addVar().
void SeExprVarNode::eval | ( | SeVec3d & | v | ) | const [virtual] |
Evaluation method. Note: v[1] and v[2] are undefined if !isVec.
Reimplemented from SeExprNode.
Definition at line 666 of file SeExprNode.cpp.
References _var, and SeExprVarRef::eval().
Data* SeExprVarNode::getData | ( | ) | const [inline] |
Definition at line 389 of file SeExprNode.h.
References _data.
const char* SeExprVarNode::name | ( | ) | const [inline] |
bool SeExprVarNode::prep | ( | bool | wantVec | ) | [virtual] |
Prepare the node (for parser use only). See the discussion at the start of SeExprNode.cpp for more info.
Reimplemented from SeExprNode.
Definition at line 651 of file SeExprNode.cpp.
References SeExprNode::_expr, SeExprNode::_isVec, _var, SeExprNode::addError(), SeExprVarRef::isVec(), name(), SeExpression::resolveLocalVar(), and SeExpression::resolveVar().
void SeExprVarNode::setData | ( | Data * | data | ) | const [inline] |
Definition at line 388 of file SeExprNode.h.
References _data.
Data* SeExprVarNode::_data [mutable, private] |
Definition at line 394 of file SeExprNode.h.
const char* SeExprVarNode::_name [private] |
Definition at line 392 of file SeExprNode.h.
Referenced by name().
SeExprVarRef* SeExprVarNode::_var [private] |
Definition at line 393 of file SeExprNode.h.