#ifndef GROWABLEINTEGERARRAY_HPP #define GROWABLEINTEGERARRAY_HPP #include "include/array/GrowableArray.hpp" class GrowableIntegerArray{ public: GrowableIntegerArray(unsigned int initSize=minmum_capacity); int* getArrayData(); unsigned int capacity(); const unsigned int& length=arrlen; const unsigned int& element_size=elementSize; void put(const int e); void set(unsigned index, const int e); void copyFrom(const int* data, unsigned int count); void copyFrom(const int* data, unsigned int index, unsigned int count); void copyFrom(const int* data, unsigned int index, unsigned int bufferOffset, unsigned int count); int get(unsigned int index); void remove(unsigned int index); void gc(); void clear(); ~GrowableIntegerArray(); private: GrowableArray* array; unsigned int arrlen; unsigned int elementSize; static const unsigned int minmum_capacity; }; #endif // GROWABLEINTEGERARRAY_HPP