SeExprVarNode Class Reference

Node that references a variable. More...

#include <SeExprNode.h>

Inheritance diagram for SeExprVarNode:
SeExprNode

List of all members.

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
DatagetData () const

Private Attributes

const char * _name
SeExprVarRef_var
Data_data

Detailed Description

Node that references a variable.

Definition at line 375 of file SeExprNode.h.


Constructor & Destructor Documentation

SeExprVarNode::SeExprVarNode ( const SeExpression expr,
const char *  name 
) [inline]

Definition at line 378 of file SeExprNode.h.

References SeExpression::addVar().


Member Function Documentation

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]

Definition at line 384 of file SeExprNode.h.

References _name.

Referenced by prep().

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.


Member Data Documentation

Data* SeExprVarNode::_data [mutable, private]

Definition at line 394 of file SeExprNode.h.

Referenced by getData(), and setData().

const char* SeExprVarNode::_name [private]

Definition at line 392 of file SeExprNode.h.

Referenced by name().

Definition at line 393 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