Searched defs:ScopedPtr (Results 1 - 2 of 2) sorted by relevance

/external/qemu/android/base/memory/
H A DScopedPtr.h27 // ScopedPtr<Foo> ptr(new Foo());
31 // You cannot copy ScopedPtr instances directly, but you can actually
35 // ScopedPtr<Foo> ptr(new Foo()); // object owned by |ptr|
36 // ScopedPtr<Foo> ptr2(ptr.release()); // object owned by |ptr2|
39 class ScopedPtr { class in namespace:android::base
42 ScopedPtr() : mPtr(NULL) {} function in class:android::base::ScopedPtr
45 explicit ScopedPtr(T* ptr) : mPtr(ptr) {} function in class:android::base::ScopedPtr
48 ~ScopedPtr() { reset(NULL); }
77 DISALLOW_COPY_AND_ASSIGN(ScopedPtr);
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_util.h25 class ScopedPtr { class in namespace:crazy
27 ScopedPtr() : ptr_(NULL) {} function in class:crazy::ScopedPtr
28 explicit ScopedPtr(T* ptr) : ptr_(ptr) {} function in class:crazy::ScopedPtr
29 ~ScopedPtr() { Reset(NULL); }

Completed in 127 milliseconds