SeExprAssignNode Class Reference

Node that compute a local variable assignment. More...

#include <SeExprNode.h>

Inheritance diagram for SeExprAssignNode:
SeExprNode

List of all members.

Public Member Functions

 SeExprAssignNode (const SeExpression *expr, const char *name, SeExprNode *e)
virtual bool prep (bool wantVec)
virtual void eval (SeVec3d &result) const
 Evaluation method. Note: v[1] and v[2] are undefined if !isVec.

Private Attributes

const char * _name
SeExprLocalVarRef_var

Detailed Description

Node that compute a local variable assignment.

Definition at line 114 of file SeExprNode.h.


Constructor & Destructor Documentation

SeExprAssignNode::SeExprAssignNode ( const SeExpression expr,
const char *  name,
SeExprNode e 
) [inline]

Definition at line 117 of file SeExprNode.h.


Member Function Documentation

void SeExprAssignNode::eval ( SeVec3d v  )  const [virtual]

Evaluation method. Note: v[1] and v[2] are undefined if !isVec.

Reimplemented from SeExprNode.

Definition at line 215 of file SeExprNode.cpp.

References _var, SeExprNode::child(), SeExprNode::eval(), SeExprNode::isVec(), SeExprLocalVarRef::isVec(), and SeExprLocalVarRef::val.

bool SeExprAssignNode::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 201 of file SeExprNode.cpp.

References SeExprNode::_expr, SeExprNode::_isVec, _name, _var, SeExprNode::child(), SeExpression::getLocalVar(), SeExprNode::isVec(), and SeExprLocalVarRef::setIsVec().


Member Data Documentation

const char* SeExprAssignNode::_name [private]

Definition at line 124 of file SeExprNode.h.

Referenced by prep().

Definition at line 125 of file SeExprNode.h.

Referenced by eval(), and prep().


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

Generated on 25 Jul 2013 for SeExpr by  doxygen 1.6.1