Beispiel #1
0
 private void HPopTop()
 {
     StackOp.Push(new PHullOp(eOp.Top, Elt[this.Top]));
     //HElt[++Hp] = Elt[Top];
     //Op[Hp] = eStackOp.Top;
     Elt[Top] = -1;
     Top--;
 }
Beispiel #2
0
 private void HPush(int ie)
 {
     Elt[++Top] = ie;
     Elt[--Bot] = ie;
     StackOp.Push(new PHullOp(eOp.Push, ie));
     //HElt[++Hp] = ie;
     //Op[Hp] = eStackOp.Push;
 }
Beispiel #3
0
 private void HPopBot()
 {
     StackOp.Push(new PHullOp(eOp.Bot, Elt[this.Bot]));
     //HElt[++Hp] = Elt[Bot];
     //Op[Hp] = eStackOp.Bot;
     Elt[Bot] = -1;
     Bot++;
 }
Beispiel #4
0
 private void HInit(int ib, int ie)
 {
     Elt[HMax] = ib;
     Top       = HMax + 1;
     Elt[Top]  = ie;
     Bot       = HMax - 1;
     Elt[Bot]  = ie;
     //Hp = 0;
     //HElt[Hp] = ie;
     //Op[Hp] = eStackOp.Push;
     StackOp.Push(new PHullOp(eOp.Push, ie));
 }