35 #define PtrArQuant DEFAULT_QUANT
39 #define PtrArVolume START_VOLUME
49 PtrAr (
unsigned quant = PtrArQuant,
50 unsigned volume = PtrArVolume)
51 :
DynAr(
sizeof(PtrType), quant, volume) {};
53 PtrType& fetch (
unsigned i)
54 {
return *(PtrType*)item_ptr(i);};
55 PtrType
get (
unsigned i)
const
56 {
return *(PtrType*)item_ptr(i);};
58 void insert (
unsigned i,
const PtrType val)
59 {DynAr::insert(i, (
const char*)&val);};
61 void addh (
const PtrType val) {DynAr::addh((
const char*)&val);};
62 void addl (
const PtrType val) {DynAr::addl((
const char*)&val);};
64 void addh (
const PtrAr& pArray) {DynAr::addh(pArray);};
65 void addl (
const PtrAr& pArray) {DynAr::addl(pArray);};
68 {DynAr::assign(pArray);
return *
this;};
71 PtrType& operator[] (
unsigned i)
73 PtrType operator() (
unsigned i)
const
76 {
return assign(pArray);};
81 virtual void destruct_item (
char* item){
82 PtrType p = (PtrType)item;