• Home
  • Raw
  • Download

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()
240 : LocalPointerBase<T>(p.release()) {} in LocalPointer()
248 delete LocalPointerBase<T>::ptr; in ~LocalPointer()
258 delete LocalPointerBase<T>::ptr;
259 LocalPointerBase<T>::ptr=src.ptr;
285 T *temp=LocalPointerBase<T>::ptr; in swap()
286 LocalPointerBase<T>::ptr=other.ptr; in swap()
305 delete LocalPointerBase<T>::ptr; in adoptInstead()
306 LocalPointerBase<T>::ptr=p; in adoptInstead()
325 delete LocalPointerBase<T>::ptr; in adoptInsteadAndCheckErrorCode()
326 LocalPointerBase<T>::ptr=p; in adoptInsteadAndCheckErrorCode()
348 return std::unique_ptr<T>(LocalPointerBase<T>::orphan());
372 class LocalArray : public LocalPointerBase<T> {
374 using LocalPointerBase<T>::operator*;
375 using LocalPointerBase<T>::operator->;
381 explicit LocalArray(T *p=NULL) : LocalPointerBase<T>(p) {}
395 LocalArray(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalArray()
405 LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) { in LocalArray()
421 : LocalPointerBase<T>(p.release()) {} in LocalArray()
429 delete[] LocalPointerBase<T>::ptr; in ~LocalArray()
439 delete[] LocalPointerBase<T>::ptr;
440 LocalPointerBase<T>::ptr=src.ptr;
466 T *temp=LocalPointerBase<T>::ptr; in swap()
467 LocalPointerBase<T>::ptr=other.ptr; in swap()
486 delete[] LocalPointerBase<T>::ptr; in adoptInstead()
487 LocalPointerBase<T>::ptr=p; in adoptInstead()
506 delete[] LocalPointerBase<T>::ptr; in adoptInsteadAndCheckErrorCode()
507 LocalPointerBase<T>::ptr=p; in adoptInsteadAndCheckErrorCode()
522 T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
537 return std::unique_ptr<T[]>(LocalPointerBase<T>::orphan());
563 class LocalPointerClassName : public LocalPointerBase<Type> { \
565 using LocalPointerBase<Type>::operator*; \
566 using LocalPointerBase<Type>::operator->; \
567 explicit LocalPointerClassName(Type *p=NULL) : LocalPointerBase<Type>(p) {} \
569 : LocalPointerBase<Type>(src.ptr) { \
574 : LocalPointerBase<Type>(p.release()) {} \
578 LocalPointerBase<Type>::ptr=src.ptr; \
588 Type *temp=LocalPointerBase<Type>::ptr; \
589 LocalPointerBase<Type>::ptr=other.ptr; \
600 …return std::unique_ptr<Type, decltype(&closeFunction)>(LocalPointerBase<Type>::orphan(), closeFunc…