anthill.util
Class Backtrack

java.lang.Object
  |
  +--anthill.util.Backtrack
All Implemented Interfaces:
Serializable

public class Backtrack
extends Object
implements Serializable

This class

Version:
$Revision: 1.4 $
Author:
Alberto Montresor
See Also:
Serialized Form

Constructor Summary
Backtrack()
           
 
Method Summary
 int get()
          Writes the value i in the last position of the backtrack data structure.
 void pop()
           
 void push()
          Resizes the backtrack structure by adding the space for a new element.
 void set(int i)
          Writes the value i in the last position of the backtrack data structure.
 int size()
          Return the number of elements stored in this backtrack data structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Backtrack

public Backtrack()
Method Detail

push

public void push()
Resizes the backtrack structure by adding the space for a new element.


set

public void set(int i)
Writes the value i in the last position of the backtrack data structure.


get

public int get()
Writes the value i in the last position of the backtrack data structure.


pop

public void pop()

size

public int size()
Return the number of elements stored in this backtrack data structure.