#include <ptrvec.h>
Public Member Functions |
|
PtrVec () | |
T * | operator[] (int i) const |
T *& | operator[] (int i) |
PtrVec< T > & | operator= (const PtrVec< T > &v) |
void | append (T *ptr, int extra=10) |
void | insertAt (T *ptr, int at, int extra=10) |
T * | remove (int i) |
T * | removeLast () |
void | deleteAll () |
T* operator[] | ( | int | i | ) | const [inline] |
Reimplemented from PtrVector.
{ return (T*)PtrVector::operator[](i); }
T*& operator[] | ( | int | i | ) | [inline] |
Reimplemented from PtrVector.
{ return (T*&)PtrVector::operator[](i); }
{ return (PtrVec<T>&)PtrVector::operator=(v); }
void append | ( | T * | ptr, |
int | extra = 10 |
||
) | [inline] |
{ PtrVector::append(ptr,extra); }
void insertAt | ( | T * | ptr, |
int | at, | ||
int | extra = 10 |
||
) | [inline] |
{ PtrVector::insertAt(ptr,at,extra); }
T* remove | ( | int | i | ) | [inline] |
Reimplemented from PtrVector.
{ return (T *)PtrVector::remove(i); }
T* removeLast | ( | ) | [inline] |
Reimplemented from PtrVector.
{ return (T *)PtrVector::removeLast(); }
void deleteAll | ( | ) |
{ while (length()) { T* p = removeLast(); delete p; p = NULL; } }