Esempio n. 1
0
 /**
  * Main program.
  *
  * @param array $args Command-line arguments.
  * @return integer Zero on succes; non-zero on failure.
  */
 public static function main($args)
 {
     printf("Demonstration program number 4.\n");
     $status = 0;
     ChainedHashTable::main($args);
     ChainedScatterTable::main($args);
     OpenScatterTable::main($args);
     OpenScatterTableV2::main($args);
     return $status;
 }
Esempio n. 2
0
 /**
  * Destructor.
  */
 public function __destruct()
 {
     parent::__destruct();
 }
Esempio n. 3
0
        return new OpenScatterTable_Iterator($this);
    }
    /**
     * Compares this open scatter table with the specified comparable object.
     * This method is not implemented.
     *
     * @param object IComparble $arg
     * The comparable object to which this open scatter table
     */
    protected function compareTo(IComparable $arg)
    {
        throw new MethodNotImplementedException();
    }
    /**
     * Main program.
     *
     * @param array $args Command-line arguments.
     * @return integer Zero on success; non-zero on failure.
     */
    public static function main($args)
    {
        printf("OpenScatterTable main program.\n");
        $status = 0;
        $hashTable = new OpenScatterTable(57);
        AbstractHashTable::test($hashTable);
        return $status;
    }
}
if (realpath($argv[0]) == realpath(__FILE__)) {
    exit(OpenScatterTable::main(array_slice($argv, 1)));
}