5 // Excruciatingly simple vector-of-pointers class. Easy & useful.
6 // No support for addition of elements anywhere but at the end of the
7 // list, nor for removal of elements. Does not delete (or interpret
8 // in any way) its contents.
16 void set(int i, void* p);
27 inline Vector::Vector()
34 inline Vector::~Vector()
39 inline int Vector::add(void* p)
47 inline void* Vector::get(int i)
52 inline void Vector::set(int i, void* p)
57 inline int Vector::size()
62 inline bool Vector::empty()
67 inline void Vector::realloc()
69 _nelem = 2*_nelem + 1;
70 void** array = new void*[_nelem];
71 for(int i=0; i<_sz; i++)