Searched defs:scoped_array (Results 1 - 13 of 13) sorted by relevance

/external/oprofile/libutil++/
H A Dutility.h57 template<typename T> class scoped_array { class
59 explicit scoped_array(T * p = 0) : p_(p) {} function in class:scoped_array
60 ~scoped_array() { delete [] p_; }
72 void swap(scoped_array & sp) {
79 scoped_array & operator=(scoped_array const &);
80 scoped_array(scoped_array const &);
/external/ceres-solver/include/ceres/internal/
H A Dscoped_ptr.h33 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
48 template <class C> class scoped_array;
184 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
187 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
188 // or is NULL. A scoped_array<C> owns the object that it points to.
189 // scoped_array<T> is thread-compatible, and once you index into it,
192 // Size: sizeof(scoped_array<C>) == sizeof(C*)
194 class scoped_array { class in namespace:ceres::internal
200 // There is no way to create an uninitialized scoped_array.
202 explicit scoped_array( function in class:ceres::internal::scoped_array
[all...]
/external/chromium_org/third_party/cld/base/
H A Dscoped_ptr.h10 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
30 template <class C> class scoped_array;
168 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
171 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
172 // or is NULL. A scoped_array<C> owns the object that it points to.
173 // scoped_array<T> is thread-compatible, and once you index into it,
176 // Size: sizeof(scoped_array<C>) == sizeof(C*)
178 class scoped_array { class
185 // There is no way to create an uninitialized scoped_array.
187 explicit scoped_array( function in class:scoped_array
[all...]
/external/chromium_org/third_party/skia/src/images/
H A Dbmpdecoderhelper.h24 template <typename T> class scoped_array { class
27 scoped_array(scoped_array const&);
28 scoped_array& operator=(const scoped_array&);
31 explicit scoped_array(T* p = 0) : ptr_(p) {} function in class:scoped_array
32 ~scoped_array() {
100 scoped_array<uint8> colTab_;
/external/skia/src/images/
H A Dbmpdecoderhelper.h24 template <typename T> class scoped_array { class
27 scoped_array(scoped_array const&);
28 scoped_array& operator=(const scoped_array&);
31 explicit scoped_array(T* p = 0) : ptr_(p) {} function in class:scoped_array
32 ~scoped_array() {
100 scoped_array<uint8> colTab_;
/external/webrtc/src/system_wrappers/interface/
H A Dscoped_ptr.h117 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to
118 // is guaranteed, either on destruction of the scoped_array or via an explicit
122 class scoped_array { class in namespace:webrtc
127 scoped_array(scoped_array const &);
128 scoped_array & operator=(scoped_array const &);
134 explicit scoped_array(T* p = NULL) : ptr(p) {} function in class:webrtc::scoped_array
136 ~scoped_array() {
147 // Delete last, in case arr destructor indirectly results in ~scoped_array
[all...]
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dprofiledata_unittest.cc58 template<typename T> class scoped_array { class in namespace:__anon15574
60 scoped_array(T* data) : data_(data) { } function in class:__anon15574::scoped_array
61 ~scoped_array() { delete[] data_; }
169 scoped_array<ProfileDataSlot> filedata(new ProfileDataSlot[num_slots]);
199 scoped_array<char> filedata(new char[filesize]);
H A Dsampler_test.cc96 template<typename T> class scoped_array { class in namespace:__anon15575
98 scoped_array(T* p) : p_(p) { } function in class:__anon15575::scoped_array
99 ~scoped_array() { delete[] p_; }
198 scoped_array<double> random_sample(new double[n]);
233 scoped_array<uint64_t> int_random_sample(new uint64_t[n]);
241 scoped_array<double> random_sample(new double[n]);
269 scoped_array<uint64_t> int_random_sample(new uint64_t[n]);
282 scoped_array<double> random_sample(new double[n]);
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dprofiledata_unittest.cc58 template<typename T> class scoped_array { class in namespace:__anon15617
60 scoped_array(T* data) : data_(data) { } function in class:__anon15617::scoped_array
61 ~scoped_array() { delete[] data_; }
169 scoped_array<ProfileDataSlot> filedata(new ProfileDataSlot[num_slots]);
199 scoped_array<char> filedata(new char[filesize]);
H A Dsampler_test.cc96 template<typename T> class scoped_array { class in namespace:__anon15618
98 scoped_array(T* p) : p_(p) { } function in class:__anon15618::scoped_array
99 ~scoped_array() { delete[] p_; }
198 scoped_array<double> random_sample(new double[n]);
233 scoped_array<uint64_t> int_random_sample(new uint64_t[n]);
241 scoped_array<double> random_sample(new double[n]);
269 scoped_array<uint64_t> int_random_sample(new uint64_t[n]);
282 scoped_array<double> random_sample(new double[n]);
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/
H A Dcommon.h448 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
451 template <class C> class scoped_array;
540 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
543 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
544 // or is NULL. A scoped_array<C> owns the object that it points to.
546 // Size: sizeof(scoped_array<C>) == sizeof(C*)
548 class scoped_array { class in namespace:google::protobuf::internal
555 // There is no way to create an uninitialized scoped_array.
557 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:google::protobuf::internal::scoped_array
561 ~scoped_array() {
[all...]
/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.h402 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
405 template <class C> class scoped_array;
494 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
497 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
498 // or is NULL. A scoped_array<C> owns the object that it points to.
500 // Size: sizeof(scoped_array<C>) == sizeof(C*)
502 class scoped_array { class in namespace:google::protobuf::internal
509 // There is no way to create an uninitialized scoped_array.
511 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:google::protobuf::internal::scoped_array
515 ~scoped_array() {
[all...]
/external/clang/test/SemaCXX/
H A Dnew-delete.cpp471 template <class C> struct scoped_array { struct in namespace:PR12061
472 scoped_array(C* p = __null);
475 Foo() : a_(new scoped_array<int>[5]) { }
476 scoped_array< scoped_array<int> > a_;

Completed in 380 milliseconds