#include <expression.h>
Public Types | |
enum | Interval { RANGEOO, RANGEOC, RANGECO, RANGECC } |
The type of the RangeExpr. More... | |
Public Member Functions | |
virtual Ptr< Value > | Eval (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< Expression > | New (Interval type, Ptr< Expression > value, Ptr< Expression > start, Ptr< Expression > end) |
Factory method to create a new range expression. |
It uses operators LT, LTE, GT and GTE on the arguments for evaluation.
The type of the RangeExpr.
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.
Implements ns3::rapidnet::Expression.
static Ptr<Expression> ns3::rapidnet::RangeExpr::New | ( | Interval | type, | |
Ptr< Expression > | value, | |||
Ptr< Expression > | start, | |||
Ptr< Expression > | end | |||
) | [static] |
Factory method to create a new range expression.
type | The type of range expression. | |
value | The value to be tested for being in range. | |
start | The lower limit of the range. | |
end | The upper limit of the range. |