/external/oprofile/libutil++/ |
H A D | utility.h | 29 template<typename T> class scoped_ptr { class 31 explicit scoped_ptr(T * p = 0) : p_(p) {} function in class:scoped_ptr 32 ~scoped_ptr() { delete p_; } 45 void swap(scoped_ptr & sp) { 52 scoped_ptr & operator=(scoped_ptr const &); 53 scoped_ptr(scoped_ptr const &);
|
/external/ceres-solver/include/ceres/internal/ |
H A D | scoped_ptr.h | 32 // implementation of the scoped_ptr class, and its closely-related brethren, 46 template <class C> class scoped_ptr; 51 scoped_ptr<C> make_scoped_ptr(C *); 53 // A scoped_ptr<T> is like a T*, except that the destructor of 54 // scoped_ptr<T> automatically deletes the pointer it holds (if 55 // any). That is, scoped_ptr<T> owns the T object that it points 56 // to. Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to 57 // a T object. Also like T*, scoped_ptr<T> is thread-compatible, and 60 // The size of a scoped_ptr is small: sizeof(scoped_ptr< 62 class scoped_ptr { class in namespace:ceres::internal 70 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:ceres::internal::scoped_ptr [all...] |
/external/chromium_org/third_party/cld/base/ |
H A D | scoped_ptr.h | 9 // implementation of the scoped_ptr class, and its closely-related brethren, 28 template <class C> class scoped_ptr; 33 scoped_ptr<C> make_scoped_ptr(C *); 35 // A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T> 37 // That is, scoped_ptr<T> owns the T object that it points to. 38 // Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object. 39 // Also like T*, scoped_ptr<T> is thread-compatible, and once you 42 // The size of a scoped_ptr is small: 43 // sizeof(scoped_ptr< 45 class scoped_ptr { class 54 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:scoped_ptr [all...] |
/external/webrtc/src/system_wrappers/interface/ |
H A D | scoped_ptr.h | 9 // See http://www.boost.org/libs/smart_ptr/scoped_ptr.htm for documentation. 12 // scoped_ptr mimics a built-in pointer except that it guarantees deletion 13 // of the object pointed to, either on destruction of the scoped_ptr or via 14 // an explicit reset(). scoped_ptr is a simple solution for simple needs; 40 class scoped_ptr { class in namespace:webrtc 45 scoped_ptr(scoped_ptr const &); 46 scoped_ptr & operator=(scoped_ptr const &); 52 explicit scoped_ptr( function in class:webrtc::scoped_ptr [all...] |
/external/chromium_org/media/base/ |
H A D | bind_to_current_loop.h | 40 base::internal::PassedWrapper<scoped_ptr<T, R> > TrampolineForward( argument 41 scoped_ptr<T, R>& p) { return base::Passed(&p); }
|
/external/chromium_org/chrome/installer/mini_installer/ |
H A D | decompress.cc | 53 class scoped_ptr { class in namespace:__anon5719 55 explicit scoped_ptr(T* a) : a_(a) { function in class:__anon5719::scoped_ptr 57 ~scoped_ptr() { 86 scoped_ptr<wchar_t> path(Utf8ToWide(pszFile)); 237 scoped_ptr<char> source_name_utf8(WideToUtf8(source_name, -1)); 239 scoped_ptr<char> source_path_utf8(WideToUtf8(source, source_name - source)); 241 scoped_ptr<char> dest_utf8(WideToUtf8(destination, -1));
|
/external/chromium_org/base/memory/ |
H A D | scoped_ptr.h | 10 // Example usage (scoped_ptr<T>): 12 // scoped_ptr<Foo> foo(new Foo("wee")); 16 // scoped_ptr<Foo> foo; // No pointer managed. 29 // Example usage (scoped_ptr<T[]>): 31 // scoped_ptr<Foo[]> foo(new Foo[100]); 42 // passing by copy will NOT work. Here is an example using scoped_ptr: 44 // void TakesOwnership(scoped_ptr<Foo> arg) { 47 // scoped_ptr<Foo> CreateFoo() { 50 // return scoped_ptr<Foo>(new Foo("new")); 52 // scoped_ptr<Fo 310 class scoped_ptr { class 322 scoped_ptr() : impl_(NULL) { } function in class:scoped_ptr 325 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:scoped_ptr 328 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:scoped_ptr 341 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:scoped_ptr 346 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:scoped_ptr 447 class scoped_ptr<T[], D> { class 456 scoped_ptr() : impl_(NULL) { } function in class:scoped_ptr 474 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:scoped_ptr 477 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:scoped_ptr 564 operator ==(T* p1, const scoped_ptr<T, D>& p2) argument 569 operator !=(T* p1, const scoped_ptr<T, D>& p2) argument [all...] |
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/util/ |
H A D | scoped_ptr.h | 6 // https://code.google.com/p/libphonenumber/source/browse/trunk/cpp/src/phonenumbers/base/memory/scoped_ptr.h?r=621 12 // implementation of the scoped_ptr class and scoped_ptr_malloc (deprecated). 27 // invokes 'delete'. The default deleter for scoped_ptr<T>. 76 // Never allow someone to declare something like scoped_ptr<int[10]>. 81 // a pointer. Can be used to store malloc-allocated pointers in scoped_ptr: 83 // scoped_ptr<int, base::FreeDeleter> foo_ptr( 91 // Minimal implementation of the core logic of scoped_ptr, suitable for 92 // reuse in both scoped_ptr and its specializations. 139 // dereferences the scoped_ptr when it is destroyed by a call to reset(), 193 // A scoped_ptr< 210 class scoped_ptr { class in namespace:i18n::addressinput 217 scoped_ptr() : impl_(NULL) { } function in class:i18n::addressinput::scoped_ptr 220 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:i18n::addressinput::scoped_ptr 223 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:i18n::addressinput::scoped_ptr 236 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:i18n::addressinput::scoped_ptr 319 class scoped_ptr<T[], D> { class in namespace:i18n::addressinput 326 scoped_ptr() : impl_(NULL) { } function in class:i18n::addressinput::scoped_ptr 344 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:i18n::addressinput::scoped_ptr 424 operator ==(T* p1, const scoped_ptr<T, D>& p2) argument 429 operator !=(T* p1, const scoped_ptr<T, D>& p2) argument [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/memory/ |
H A D | scoped_ptr.h | 10 #include <boost/scoped_ptr.hpp> 11 using boost::scoped_ptr; 16 // implementation of the scoped_ptr class and scoped_ptr_malloc (deprecated). 32 // invokes 'delete'. The default deleter for scoped_ptr<T>. 81 // Never allow someone to declare something like scoped_ptr<int[10]>. 86 // a pointer. Can be used to store malloc-allocated pointers in scoped_ptr: 88 // scoped_ptr<int, base::FreeDeleter> foo_ptr( 96 // Minimal implementation of the core logic of scoped_ptr, suitable for 97 // reuse in both scoped_ptr and its specializations. 144 // dereferences the scoped_ptr whe 215 class scoped_ptr { class in namespace:i18n::phonenumbers 222 scoped_ptr() : impl_(NULL) { } function in class:i18n::phonenumbers::scoped_ptr 225 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:i18n::phonenumbers::scoped_ptr 228 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:i18n::phonenumbers::scoped_ptr 241 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:i18n::phonenumbers::scoped_ptr 324 class scoped_ptr<T[], D> { class in namespace:i18n::phonenumbers 331 scoped_ptr() : impl_(NULL) { } function in class:i18n::phonenumbers::scoped_ptr 349 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:i18n::phonenumbers::scoped_ptr 429 operator ==(T* p1, const scoped_ptr<T, D>& p2) argument 434 operator !=(T* p1, const scoped_ptr<T, D>& p2) argument [all...] |
/external/chromium_org/third_party/webrtc/base/ |
H A D | scoped_ptr.h | 16 // Example usage (scoped_ptr<T>): 18 // scoped_ptr<Foo> foo(new Foo("wee")); 22 // scoped_ptr<Foo> foo; // No pointer managed. 35 // Example usage (scoped_ptr<T[]>): 37 // scoped_ptr<Foo[]> foo(new Foo[100]); 48 // passing by copy will NOT work. Here is an example using scoped_ptr: 50 // void TakesOwnership(scoped_ptr<Foo> arg) { 53 // scoped_ptr<Foo> CreateFoo() { 56 // return scoped_ptr<Foo>(new Foo("new")); 58 // scoped_ptr<Fo 311 class scoped_ptr { class in namespace:rtc 320 scoped_ptr() : impl_(NULL) { } function in class:rtc::scoped_ptr 323 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:rtc::scoped_ptr 326 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:rtc::scoped_ptr 339 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:rtc::scoped_ptr 344 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:rtc::scoped_ptr 456 class scoped_ptr<T[], D> { class in namespace:rtc 465 scoped_ptr() : impl_(NULL) { } function in class:rtc::scoped_ptr 483 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:rtc::scoped_ptr 486 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:rtc::scoped_ptr [all...] |
/external/chromium_org/third_party/webrtc/system_wrappers/interface/ |
H A D | scoped_ptr.h | 11 // Borrowed from Chromium's src/base/memory/scoped_ptr.h. 18 // Example usage (scoped_ptr<T>): 20 // scoped_ptr<Foo> foo(new Foo("wee")); 24 // scoped_ptr<Foo> foo; // No pointer managed. 37 // Example usage (scoped_ptr<T[]>): 39 // scoped_ptr<Foo[]> foo(new Foo[100]); 50 // passing by copy will NOT work. Here is an example using scoped_ptr: 52 // void TakesOwnership(scoped_ptr<Foo> arg) { 55 // scoped_ptr<Foo> CreateFoo() { 58 // return scoped_ptr<Fo 304 class scoped_ptr { class in namespace:webrtc 313 scoped_ptr() : impl_(NULL) { } function in class:webrtc::scoped_ptr 316 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:webrtc::scoped_ptr 319 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:webrtc::scoped_ptr 332 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:webrtc::scoped_ptr 337 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:webrtc::scoped_ptr 438 class scoped_ptr<T[], D> { class in namespace:webrtc 447 scoped_ptr() : impl_(NULL) { } function in class:webrtc::scoped_ptr 465 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:webrtc::scoped_ptr 468 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:webrtc::scoped_ptr [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | common.h | 442 // from google3/base/memory/scoped_ptr.h 447 // implementation of the scoped_ptr class, and its closely-related brethren, 450 template <class C> class scoped_ptr; 453 // A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T> 455 // That is, scoped_ptr<T> owns the T object that it points to. 456 // Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object. 458 // The size of a scoped_ptr is small: 459 // sizeof(scoped_ptr<C>) == sizeof(C*) 461 class scoped_ptr { class in namespace:google::protobuf::internal 470 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:google::protobuf::internal::scoped_ptr [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 125 // scoped_ptr - as in TR2. 584 // Defines scoped_ptr. 586 // This implementation of scoped_ptr is PARTIAL - it only contains 589 class scoped_ptr { class in namespace:testing::internal 591 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 592 ~scoped_ptr() { reset(); } 615 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|
/external/protobuf/src/google/protobuf/stubs/ |
H A D | common.h | 396 // from google3/base/scoped_ptr.h 401 // implementation of the scoped_ptr class, and its closely-related brethren, 404 template <class C> class scoped_ptr; 407 // A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T> 409 // That is, scoped_ptr<T> owns the T object that it points to. 410 // Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object. 412 // The size of a scoped_ptr is small: 413 // sizeof(scoped_ptr<C>) == sizeof(C*) 415 class scoped_ptr { class in namespace:google::protobuf::internal 424 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:google::protobuf::internal::scoped_ptr [all...] |
/external/clang/test/CodeGenCXX/ |
H A D | debug-info-use-after-free.cpp | 231 template < class > class scoped_ptr { class 311 scoped_ptr < C1::C3 > context;
|
/external/chromium_org/net/websockets/ |
H A D | websocket_stream_test.cc | 68 scoped_ptr<DeterministicSocketData> BuildSocketData( 71 scoped_ptr<DeterministicSocketData> socket_data( 80 scoped_ptr<DeterministicSocketData> BuildNullSocketData() { 118 scoped_ptr<base::Timer> timer = scoped_ptr<base::Timer>()) { 133 scoped_ptr<base::Timer> timer = 134 scoped_ptr<base::Timer>()) { 149 scoped_ptr<DeterministicSocketData> socket_data, 150 scoped_ptr<base::Timer> timer = scoped_ptr<bas 111 CreateAndConnectCustomResponse( const std::string& socket_url, const std::string& socket_path, const std::vector<std::string>& sub_protocols, const std::string& origin, const std::string& extra_request_headers, const std::string& response_body, scoped_ptr<base::Timer> timer = scoped_ptr<base::Timer>()) argument 127 CreateAndConnectStandard(const std::string& socket_url, const std::string& socket_path, const std::vector<std::string>& sub_protocols, const std::string& origin, const std::string& extra_request_headers, const std::string& extra_response_headers, scoped_ptr<base::Timer> timer = scoped_ptr<base::Timer>()) argument 145 CreateAndConnectRawExpectations( const std::string& socket_url, const std::vector<std::string>& sub_protocols, const std::string& origin, scoped_ptr<DeterministicSocketData> socket_data, scoped_ptr<base::Timer> timer = scoped_ptr<base::Timer>()) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 147 // scoped_ptr - as in TR2. 769 // Defines scoped_ptr. 771 // This implementation of scoped_ptr is PARTIAL - it only contains 774 class scoped_ptr { class in namespace:testing::internal 778 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 779 ~scoped_ptr() { reset(); } 802 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
H A D | gtest-port.h | 149 // scoped_ptr - as in TR2. 779 // Defines scoped_ptr. 781 // This implementation of scoped_ptr is PARTIAL - it only contains 784 class scoped_ptr { class in namespace:testing::internal 788 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 789 ~scoped_ptr() { reset(); } 812 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|
/external/mesa3d/src/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 147 // scoped_ptr - as in TR2. 769 // Defines scoped_ptr. 771 // This implementation of scoped_ptr is PARTIAL - it only contains 774 class scoped_ptr { class in namespace:testing::internal 778 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 779 ~scoped_ptr() { reset(); } 802 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|
/external/chromium_org/chrome/browser/supervised_user/ |
H A D | supervised_user_service.cc | 129 scoped_ptr<std::map<std::string, bool> > host_map) { 139 scoped_ptr<std::map<GURL, bool> > url_map) { 892 scoped_ptr<std::map<std::string, bool> > host_map( 909 scoped_ptr<std::map<GURL, bool> > url_map(new std::map<GURL, bool>()); 128 SetManualHosts( scoped_ptr<std::map<std::string, bool> > host_map) argument 138 SetManualURLs( scoped_ptr<std::map<GURL, bool> > url_map) argument
|
/external/chromium_org/testing/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 221 // scoped_ptr - as in TR2. 1107 // Defines scoped_ptr. 1109 // This implementation of scoped_ptr is PARTIAL - it only contains 1112 class scoped_ptr { class in namespace:testing::internal 1116 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 1117 ~scoped_ptr() { reset(); } 1138 friend void swap(scoped_ptr& a, scoped_ptr& b) { 1146 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|
/external/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 157 // scoped_ptr - as in TR2. 885 // Defines scoped_ptr. 887 // This implementation of scoped_ptr is PARTIAL - it only contains 890 class scoped_ptr { class in namespace:testing::internal 894 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr 895 ~scoped_ptr() { reset(); } 919 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
|