C# Class YAMP.LogicOperator

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

Méthodes publiques

Свойство Type Description
DefOpLevel System.Int32

Méthodes publiques

Méthode 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 méthode

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.
Résultat ScalarValue

LogicOperator() public méthode

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

LogicOperator() public méthode

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

Perform() public méthode

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

Property Details

DefOpLevel public_oe static_oe property

The assigned operator level.
public static Int32,System DefOpLevel
Résultat System.Int32