xorp

NodeBin Class Reference

A node for a binary operation. More...

#include <node.hh>

Inheritance diagram for NodeBin:
NONCOPYABLE Node< A >

List of all members.

Public Member Functions

 NodeBin (BinOper *op, Node *left, Node *right, unsigned line)
 Caller must not delete / modify pointers.
 DEFINE_VISITABLE ()
const BinOperop () const
Nodeleft () const
Noderight () const

Private Attributes

BinOper_op
Node_left
Node_right

Detailed Description

A node for a binary operation.

The node will thus have two children. It owns both of them.


Constructor & Destructor Documentation

NodeBin::NodeBin ( BinOper op,
Node left,
Node right,
unsigned  line 
) [inline]

Caller must not delete / modify pointers.

Parameters:
opbinary operation of node.
leftfirst argument of operation.
rightsecond argument of operation.
lineline where node was created.

Member Function Documentation

Node& NodeBin::left ( ) const [inline]
Returns:
first argument of operation.
const BinOper& NodeBin::op ( ) const [inline]
Returns:
operation associated with node.
Node& NodeBin::right ( ) const [inline]
Returns:
second argument of operation.

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