Lines Matching refs:LocalPointerBase
68 class LocalPointerBase {
82 explicit LocalPointerBase(T *p=NULL) : ptr(p) {} in ptr()
88 ~LocalPointerBase() { /* delete ptr; */ } in ~LocalPointerBase()
165 bool operator==(const LocalPointerBase<T> &other);
166 bool operator!=(const LocalPointerBase<T> &other);
168 LocalPointerBase(const LocalPointerBase<T> &other);
169 void operator=(const LocalPointerBase<T> &other);
191 class LocalPointer : public LocalPointerBase<T> {
193 using LocalPointerBase<T>::operator*;
194 using LocalPointerBase<T>::operator->;
200 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
214 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalPointer()
224 LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) { in LocalPointer()
239 : LocalPointerBase<T>(p.release()) {} in LocalPointer()
246 delete LocalPointerBase<T>::ptr; in ~LocalPointer()
256 delete LocalPointerBase<T>::ptr;
257 LocalPointerBase<T>::ptr=src.ptr;
281 T *temp=LocalPointerBase<T>::ptr; in swap()
282 LocalPointerBase<T>::ptr=other.ptr; in swap()
301 delete LocalPointerBase<T>::ptr; in adoptInstead()
302 LocalPointerBase<T>::ptr=p; in adoptInstead()
321 delete LocalPointerBase<T>::ptr; in adoptInsteadAndCheckErrorCode()
322 LocalPointerBase<T>::ptr=p; in adoptInsteadAndCheckErrorCode()
343 return std::unique_ptr<T>(LocalPointerBase<T>::orphan());
366 class LocalArray : public LocalPointerBase<T> {
368 using LocalPointerBase<T>::operator*;
369 using LocalPointerBase<T>::operator->;
375 explicit LocalArray(T *p=NULL) : LocalPointerBase<T>(p) {}
389 LocalArray(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalArray()
399 LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) { in LocalArray()
414 : LocalPointerBase<T>(p.release()) {} in LocalArray()
421 delete[] LocalPointerBase<T>::ptr; in ~LocalArray()
431 delete[] LocalPointerBase<T>::ptr;
432 LocalPointerBase<T>::ptr=src.ptr;
456 T *temp=LocalPointerBase<T>::ptr; in swap()
457 LocalPointerBase<T>::ptr=other.ptr; in swap()
476 delete[] LocalPointerBase<T>::ptr; in adoptInstead()
477 LocalPointerBase<T>::ptr=p; in adoptInstead()
496 delete[] LocalPointerBase<T>::ptr; in adoptInsteadAndCheckErrorCode()
497 LocalPointerBase<T>::ptr=p; in adoptInsteadAndCheckErrorCode()
512 T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
526 return std::unique_ptr<T[]>(LocalPointerBase<T>::orphan());
551 class LocalPointerClassName : public LocalPointerBase<Type> { \
553 using LocalPointerBase<Type>::operator*; \
554 using LocalPointerBase<Type>::operator->; \
555 explicit LocalPointerClassName(Type *p=NULL) : LocalPointerBase<Type>(p) {} \
557 : LocalPointerBase<Type>(src.ptr) { \
562 : LocalPointerBase<Type>(p.release()) {} \
566 LocalPointerBase<Type>::ptr=src.ptr; \
576 Type *temp=LocalPointerBase<Type>::ptr; \
577 LocalPointerBase<Type>::ptr=other.ptr; \
588 …return std::unique_ptr<Type, decltype(&closeFunction)>(LocalPointerBase<Type>::orphan(), closeFunc…