Lines Matching defs:LocalPointerBase
64 class LocalPointerBase {
71 explicit LocalPointerBase(T *p=NULL) : ptr(p) {}
77 ~LocalPointerBase() { /* delete ptr; */ }
150 bool operator==(const LocalPointerBase &other);
151 bool operator!=(const LocalPointerBase &other);
153 LocalPointerBase(const LocalPointerBase &other);
154 void operator=(const LocalPointerBase &other);
165 * For most methods see the LocalPointerBase base class.
178 * @see LocalPointerBase
182 class LocalPointer : public LocalPointerBase<T> {
189 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
195 delete LocalPointerBase<T>::ptr;
204 delete LocalPointerBase<T>::ptr;
205 LocalPointerBase<T>::ptr=p;
211 * For most methods see the LocalPointerBase base class.
224 * @see LocalPointerBase
228 class LocalArray : public LocalPointerBase<T> {
235 explicit LocalArray(T *p=NULL) : LocalPointerBase<T>(p) {}
241 delete[] LocalPointerBase<T>::ptr;
250 delete[] LocalPointerBase<T>::ptr;
251 LocalPointerBase<T>::ptr=p;
260 T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
266 * Defines a subclass of LocalPointerBase which works just
282 * @see LocalPointerBase
287 class LocalPointerClassName : public LocalPointerBase<Type> { \
289 explicit LocalPointerClassName(Type *p=NULL) : LocalPointerBase<Type>(p) {} \