HomeSort by relevance Sort by last modified time
    Searched defs:scoped_ptr (Results 1 - 10 of 10) sorted by null

  /external/oprofile/libutil++/
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/chromium/base/memory/
scoped_ptr.h 10 // Example usage (scoped_ptr):
12 // scoped_ptr<Foo> foo(new Foo("wee"));
16 // scoped_ptr<Foo> foo; // No pointer managed.
41 // implementation of the scoped_ptr class, and its closely-related brethren,
50 // A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T>
52 // That is, scoped_ptr<T> owns the T object that it points to.
53 // Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object.
54 // Also like T*, scoped_ptr<T> is thread-compatible, and once you
57 // The size of a scoped_ptr is small
60 class scoped_ptr { class
69 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:scoped_ptr
    [all...]
  /external/chromium/googleurl/base/
scoped_ptr.h 12 // See http://www.boost.org/libs/smart_ptr/scoped_ptr.htm for documentation.
15 // scoped_ptr mimics a built-in pointer except that it guarantees deletion
16 // of the object pointed to, either on destruction of the scoped_ptr or via
17 // an explicit reset(). scoped_ptr is a simple solution for simple needs;
21 // If your scoped_ptr is a class member of class FOO pointing to a
23 // version of the destructor. The destructor of a scoped_ptr (called from
36 // scoped_ptr<BAR> bar_;
48 class scoped_ptr { class
53 scoped_ptr(scoped_ptr const &)
60 explicit scoped_ptr(T* p = 0): ptr(p) {} function in class:scoped_ptr
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
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:talk_base
45 scoped_ptr(scoped_ptr const &);
46 scoped_ptr & operator=(scoped_ptr const &);
52 explicit scoped_ptr(T* p = NULL): ptr(p) { function in class:talk_base::scoped_ptr
    [all...]
  /external/chromium/sdch/open-vcdiff/src/gtest/internal/
gtest-port.h 93 // scoped_ptr - as in TR2.
295 // Defines scoped_ptr.
297 // This implementation of scoped_ptr is PARTIAL - it only contains
300 class scoped_ptr { class in namespace:testing::internal
302 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr
303 ~scoped_ptr() { reset(); }
326 GTEST_DISALLOW_COPY_AND_ASSIGN(scoped_ptr);
  /external/gtest/include/gtest/internal/
gtest-port.h 116 // scoped_ptr - as in TR2.
490 // Defines scoped_ptr.
492 // This implementation of scoped_ptr is PARTIAL - it only contains
495 class scoped_ptr { class in namespace:testing::internal
497 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr
498 ~scoped_ptr() { reset(); }
521 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
  /external/protobuf/gtest/include/gtest/internal/
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);
    [all...]
  /external/protobuf/src/google/protobuf/stubs/
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/chromium/testing/gtest/include/gtest/internal/
gtest-port.h 144 // scoped_ptr - as in TR2.
753 // Defines scoped_ptr.
755 // This implementation of scoped_ptr is PARTIAL - it only contains
758 class scoped_ptr { class in namespace:testing::internal
762 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr
763 ~scoped_ptr() { reset(); }
786 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
    [all...]
  /external/llvm/utils/unittest/googletest/include/gtest/internal/
gtest-port.h 148 // scoped_ptr - as in TR2.
774 // Defines scoped_ptr.
776 // This implementation of scoped_ptr is PARTIAL - it only contains
779 class scoped_ptr { class in namespace:testing::internal
783 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} function in class:testing::internal::scoped_ptr
784 ~scoped_ptr() { reset(); }
807 GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);
    [all...]

Completed in 2458 milliseconds