C# Class YAMP.LogicOperator

The abstract base class for any logic operator (==, ~=, >, >=, ...), which is essentially a binary operator.
Inheritance: BinaryOperator
Mostrar archivo Open project: FlorianRappl/YAMP

Public Properties

Property Type Description
DefOpLevel System.Int32

Public Methods

Method Description
Compare ( ScalarValue left, ScalarValue right ) : ScalarValue

Method to implement, which compares two scalars.

LogicOperator ( String op ) : System

Creates a new logic operator (like ==, ~=, ...).

LogicOperator ( String op, Int32 level ) : System

Creates a new logic operator.

Perform ( Value left, Value right ) : Value

Performs the logic operation with two values.

Method Details

Compare() public abstract method

Method to implement, which compares two scalars.
public abstract Compare ( ScalarValue left, ScalarValue right ) : ScalarValue
left ScalarValue The left one.
right ScalarValue The right one.
return ScalarValue

LogicOperator() public method

Creates a new logic operator (like ==, ~=, ...).
public LogicOperator ( String op ) : System
op String The operator string.
return System

LogicOperator() public method

Creates a new logic operator.
public LogicOperator ( String op, Int32 level ) : System
op String The operator string.
level System.Int32 The operator level.
return System

Perform() public method

Performs the logic operation with two values.
public Perform ( Value left, Value right ) : Value
left Value The left value.
right Value The right value.
return Value

Property Details

DefOpLevel public_oe static_oe property

The assigned operator level.
public static Int32,System DefOpLevel
return System.Int32