class NodeBin

A node for a binary operation. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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

 NodeBin (BinOper* op, Node* left, Node* right, unsigned line)

NodeBin

Caller must not delete / modify pointers.

Parameters:

opbinary operation of node.
leftfirst argument of operation.
rightsecond argument of operation.
lineline where node was created.
 ~NodeBin ()

~NodeBin

 DEFINE_VISITABLE ()

DEFINE_VISITABLE

const BinOper&  op ()

op

[const]

Returns: operation associated with node.

Node&  left ()

left

[const]

Returns: first argument of operation.

Node&  right ()

right

[const]

Returns: second argument of operation.


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:02 2009, using kdoc 2.0a54+XORP.