C# Class PclUnit.Constraints.Pieces.ConstraintBuilder.ConstraintStack

ConstraintStack is a type-safe stack for holding Constraints
Afficher le fichier Open project: jbtule/PclUnit

Méthodes publiques

Méthode Description
ConstraintStack ( ConstraintBuilder builder ) : System

Initializes a new instance of the T:ConstraintStack class.

Pop ( ) : Constraint

Pops this topmost constrait from the stack. As a side effect, the constraint's builder field is set to null.

Push ( Constraint constraint ) : void

Pushes the specified constraint. As a side effect, the constraint's builder field is set to the ConstraintBuilder owning this stack.

Method Details

ConstraintStack() public méthode

Initializes a new instance of the T:ConstraintStack class.
public ConstraintStack ( ConstraintBuilder builder ) : System
builder ConstraintBuilder The builder.
Résultat System

Pop() public méthode

Pops this topmost constrait from the stack. As a side effect, the constraint's builder field is set to null.
public Pop ( ) : Constraint
Résultat Constraint

Push() public méthode

Pushes the specified constraint. As a side effect, the constraint's builder field is set to the ConstraintBuilder owning this stack.
public Push ( Constraint constraint ) : void
constraint Constraint The constraint.
Résultat void