Home | History | Annotate | Download | only in unicode

Lines Matching refs:LocalPointerBase

64 class LocalPointerBase {
71 explicit LocalPointerBase(T *p=NULL) : ptr(p) {}
77 ~LocalPointerBase() { /* delete ptr; */ }
154 bool operator==(const LocalPointerBase<T> &other);
155 bool operator!=(const LocalPointerBase<T> &other);
157 LocalPointerBase(const LocalPointerBase<T> &other);
158 void operator=(const LocalPointerBase<T> &other);
169 * For most methods see the LocalPointerBase base class.
182 * @see LocalPointerBase
186 class LocalPointer : public LocalPointerBase<T> {
193 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
208 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
219 LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
229 delete LocalPointerBase<T>::ptr;
254 delete LocalPointerBase<T>::ptr;
255 LocalPointerBase<T>::ptr=src.ptr;
265 T *temp=LocalPointerBase<T>::ptr;
266 LocalPointerBase<T>::ptr=other.ptr;
286 delete LocalPointerBase<T>::ptr;
287 LocalPointerBase<T>::ptr=p;
307 delete LocalPointerBase<T>::ptr;
308 LocalPointerBase<T>::ptr=p;
321 * For most methods see the LocalPointerBase base class.
334 * @see LocalPointerBase
338 class LocalArray : public LocalPointerBase<T> {
345 explicit LocalArray(T *p=NULL) : LocalPointerBase<T>(p) {}
360 LocalArray(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
371 LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
381 delete[] LocalPointerBase<T>::ptr;
406 delete[] LocalPointerBase<T>::ptr;
407 LocalPointerBase<T>::ptr=src.ptr;
417 T *temp=LocalPointerBase<T>::ptr;
418 LocalPointerBase<T>::ptr=other.ptr;
438 delete[] LocalPointerBase<T>::ptr;
439 LocalPointerBase<T>::ptr=p;
459 delete[] LocalPointerBase<T>::ptr;
460 LocalPointerBase<T>::ptr=p;
476 T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
482 * Defines a subclass of LocalPointerBase which works just
498 * @see LocalPointerBase
504 class LocalPointerClassName : public LocalPointerBase<Type> { \
506 explicit LocalPointerClassName(Type *p=NULL) : LocalPointerBase<Type>(p) {} \
508 : LocalPointerBase<Type>(src.ptr) { \
517 LocalPointerBase<Type>::ptr=src.ptr; \
522 Type *temp=LocalPointerBase<Type>::ptr; \
523 LocalPointerBase<Type>::ptr=other.ptr; \
536 class LocalPointerClassName : public LocalPointerBase<Type> { \
538 explicit LocalPointerClassName(Type *p=NULL) : LocalPointerBase<Type>(p) {} \
542 LocalPointerBase<Type>::ptr=src.ptr; \
547 Type *temp=LocalPointerBase<Type>::ptr; \
548 LocalPointerBase<Type>::ptr=other.ptr; \