C# 클래스 PclUnit.Constraints.Pieces.ConstraintBuilder.ConstraintStack

ConstraintStack is a type-safe stack for holding Constraints
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
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.

메소드 상세

ConstraintStack() 공개 메소드

Initializes a new instance of the T:ConstraintStack class.
public ConstraintStack ( ConstraintBuilder builder ) : System
builder ConstraintBuilder The builder.
리턴 System

Pop() 공개 메소드

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

Push() 공개 메소드

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.
리턴 void