/**********************************************************************
This file is part of Crack dot Com's free source code release of Golgotha.
for information about compiling & licensing issues visit this URL
 If that doesn't help, contact Jonathan Clark at 
  golgotha_source@usa.net (Subject should have "GOLG" in it) 
***********************************************************************/

#ifndef I4_FIXED_ARRAY_HH
#define I4_FIXED_ARRAY_HH

// this template class manages an array of object
// it automaically expands when add() is called and not enough elements are
// available.  It also has an array reference operator allowing for transparent
// range checking.

#include "error/error.hh"
#include "memory/malloc.hh"
#include "search.hh"
#include 

template 
class i4_fixed_array
{
protected:
  T *entry;
  int entries;
public:

  int size() const { return entries; }
  T& operator[](int i) const 
  {
    I4_ASSERT(i>=0 && i=0 && i