ns3::rapidnet::Operation Class Reference
[RapidNet Library]

An operation over one (unary) or two (binary) operands which are in turn expressions. More...

#include <expression.h>

Inheritance diagram for ns3::rapidnet::Operation:

Inheritance graph
[legend]
Collaboration diagram for ns3::rapidnet::Operation:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Ptr< ValueEval (Ptr< Tuple > tuple)
 Evaluates the expression against the given tuple. Note that all expressions are evaluated only against a tuple. The expression may use attributes of the tuple by using a VarExpr object. Or it may not use any attributes at all.
virtual string ToString () const
 String representation of the expression.

Static Public Member Functions

static Ptr< ExpressionNew (Operator op, Ptr< Expression > left)
 Factory method to create a unary expression.
static Ptr< ExpressionNew (Operator op, Ptr< Expression > left, Ptr< Expression > right)
 Factory method to create a unary expression.


Detailed Description

An operation over one (unary) or two (binary) operands which are in turn expressions.

Member Function Documentation

virtual Ptr<Value> ns3::rapidnet::Operation::Eval ( Ptr< Tuple tuple  )  [virtual]

Evaluates the expression against the given tuple. Note that all expressions are evaluated only against a tuple. The expression may use attributes of the tuple by using a VarExpr object. Or it may not use any attributes at all.

See also:
VarExpr

Implements ns3::rapidnet::Expression.


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

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8