Searched defs:scoped_ptr (Results 1 - 23 of 23) sorted by relevance

/external/oprofile/libutil++/
H A Dutility.h29 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 Dscoped_ptr.h32 // 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 Dscoped_ptr.h9 // 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 Dscoped_ptr.h9 // 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 Dbind_to_current_loop.h40 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 Ddecompress.cc53 class scoped_ptr { class in namespace:__anon5643
55 explicit scoped_ptr(T* a) : a_(a) { function in class:__anon5643::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 Dscoped_ptr.h10 // 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/chromium/cpp/include/libaddressinput/util/internal/
H A Dscoped_ptr.h10 // 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
322 class scoped_ptr { class
334 scoped_ptr() : impl_(NULL) { } function in class:scoped_ptr
337 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:scoped_ptr
340 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:scoped_ptr
353 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:scoped_ptr
358 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:scoped_ptr
461 class scoped_ptr<T[], D> { class
470 scoped_ptr() : impl_(NULL) { } function in class:scoped_ptr
488 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:scoped_ptr
491 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:scoped_ptr
580 operator ==(T* p1, const scoped_ptr<T, D>& p2) argument
585 operator !=(T* p1, const scoped_ptr<T, D>& p2) argument
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/util/
H A Dscoped_ptr.h6 // 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).
28 // invokes 'delete'. The default deleter for scoped_ptr<T>.
77 // Never allow someone to declare something like scoped_ptr<int[10]>.
82 // a pointer. Can be used to store malloc-allocated pointers in scoped_ptr:
84 // scoped_ptr<int, base::FreeDeleter> foo_ptr(
92 // Minimal implementation of the core logic of scoped_ptr, suitable for
93 // reuse in both scoped_ptr and its specializations.
140 // dereferences the scoped_ptr when it is destroyed by a call to reset(),
194 // A scoped_ptr<
211 class scoped_ptr { class in namespace:i18n::addressinput
218 scoped_ptr() : impl_(NULL) { } function in class:i18n::addressinput::scoped_ptr
221 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:i18n::addressinput::scoped_ptr
224 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:i18n::addressinput::scoped_ptr
237 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:i18n::addressinput::scoped_ptr
320 class scoped_ptr<T[], D> { class in namespace:i18n::addressinput
327 scoped_ptr() : impl_(NULL) { } function in class:i18n::addressinput::scoped_ptr
345 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:i18n::addressinput::scoped_ptr
425 operator ==(T* p1, const scoped_ptr<T, D>& p2) argument
430 operator !=(T* p1, const scoped_ptr<T, D>& p2) argument
[all...]
/external/chromium_org/third_party/libjingle/source/talk/base/
H A Dscoped_ptr.h11 // Example usage (scoped_ptr<T>):
13 // scoped_ptr<Foo> foo(new Foo("wee"));
17 // scoped_ptr<Foo> foo; // No pointer managed.
30 // Example usage (scoped_ptr<T[]>):
32 // scoped_ptr<Foo[]> foo(new Foo[100]);
43 // passing by copy will NOT work. Here is an example using scoped_ptr:
45 // void TakesOwnership(scoped_ptr<Foo> arg) {
48 // scoped_ptr<Foo> CreateFoo() {
51 // return scoped_ptr<Foo>(new Foo("new"));
53 // scoped_ptr<Fo
306 class scoped_ptr { class in namespace:talk_base
315 scoped_ptr() : impl_(NULL) { } function in class:talk_base::scoped_ptr
318 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:talk_base::scoped_ptr
321 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:talk_base::scoped_ptr
334 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:talk_base::scoped_ptr
339 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:talk_base::scoped_ptr
451 class scoped_ptr<T[], D> { class in namespace:talk_base
460 scoped_ptr() : impl_(NULL) { } function in class:talk_base::scoped_ptr
478 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:talk_base::scoped_ptr
481 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:talk_base::scoped_ptr
[all...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/memory/
H A Dscoped_ptr.h10 #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 Dscoped_ptr.h16 // 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 Dscoped_ptr.h11 // 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 Dcommon.h442 // 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 Dgtest-port.h125 // 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 Dcommon.h396 // 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 Ddebug-info-use-after-free.cpp231 template < class > class scoped_ptr { class
311 scoped_ptr < C1::C3 > context;
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/internal/
H A Dgtest-port.h147 // 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 Dgtest-port.h149 // 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 Dgtest-port.h147 // 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 Dsupervised_user_service.cc112 scoped_ptr<std::map<std::string, bool> > host_map) {
122 scoped_ptr<std::map<GURL, bool> > url_map) {
718 scoped_ptr<std::map<std::string, bool> > host_map(
732 scoped_ptr<std::map<GURL, bool> > url_map(new std::map<GURL, bool>());
111 SetManualHosts( scoped_ptr<std::map<std::string, bool> > host_map) argument
121 SetManualURLs( scoped_ptr<std::map<GURL, bool> > url_map) argument
/external/chromium_org/testing/gtest/include/gtest/internal/
H A Dgtest-port.h219 // scoped_ptr - as in TR2.
1032 // Defines scoped_ptr.
1034 // This implementation of scoped_ptr is PARTIAL - it only contains
1037 class scoped_ptr { class in namespace:testing::internal
1041 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr
1042 ~scoped_ptr() { reset(); }
1066 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
/external/gtest/include/gtest/internal/
H A Dgtest-port.h157 // 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);

Completed in 2816 milliseconds