xorp

NodeAssign Class Reference

An assignment operation. More...

#include <node.hh>

Inheritance diagram for NodeAssign:
NONCOPYABLE Node< A >

List of all members.

Public Member Functions

 NodeAssign (const string &varid, BinOper *mod, Node *rvalue, unsigned line)
 Caller must not delete / modify pointer.
 DEFINE_VISITABLE ()
const string & varid () const
Nodervalue () const
BinOpermod () const

Private Attributes

string _varid
BinOper_mod
Node_rvalue

Detailed Description

An assignment operation.


Constructor & Destructor Documentation

NodeAssign::NodeAssign ( const string &  varid,
BinOper mod,
Node rvalue,
unsigned  line 
) [inline]

Caller must not delete / modify pointer.

Parameters:
varidthe name of the variable being assigned to.
modthe modifier (e.g., += has a modifier OpAdd).
rvaluethe expression being assigned to the variable.
lineline of configuration where node was created.

Member Function Documentation

Node& NodeAssign::rvalue ( ) const [inline]
Returns:
argument of assignment.
const string& NodeAssign::varid ( ) const [inline]
Returns:
name of variable being assigned to.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations