C# Class PclUnit.Constraints.Pieces.ConstraintOperator

The ConstraintOperator class is used internally by a ConstraintBuilder to represent an operator that modifies or combines constraints. Constraint operators use left and right precedence values to determine whether the top operator on the stack should be reduced before pushing a new operator.
Show file Open project: jbtule/PclUnit Class Usage Examples

Protected Properties

Property Type Description
left_precedence int
right_precedence int

Public Methods

Method Description
Reduce ( ConstraintBuilder stack ) : void

Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.

Method Details

Reduce() public abstract method

Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.
public abstract Reduce ( ConstraintBuilder stack ) : void
stack ConstraintBuilder
return void

Property Details

left_precedence protected property

The precedence value used when the operator is about to be pushed to the stack.
protected int left_precedence
return int

right_precedence protected property

The precedence value used when the operator is on the top of the stack.
protected int right_precedence
return int