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

/external/chromium_org/tools/clang/rewrite_scoped_array/tests/
H A Dtest-expected.cc5 template <class T> class scoped_array { class
16 scoped_ptr<scoped_array<int>(scoped_array<int> test, scoped_array<int>)[]> y;
H A Dtest-original.cc5 template <class T> class scoped_array { class
12 scoped_array<int> test_field_;
15 scoped_array<int> TestFunction(scoped_array<int> x, scoped_array<int>) {
16 scoped_array<scoped_array<int>(scoped_array<int> test, scoped_array<int>)> y;
17 scoped_array<in
[all...]
/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/base/memory/
H A Dscoped_ptr.h29 // Example usage (scoped_array):
31 // scoped_array<Foo> foo(new Foo[100]);
42 // scoped_array, scoped_ptr_malloc.
155 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
158 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
159 // or is NULL. A scoped_array<C> owns the object that it points to.
160 // scoped_array<T> is thread-compatible, and once you index into it,
163 // Size: sizeof(scoped_array<C>) == sizeof(C*)
165 class scoped_array { class
172 // There is no way to create an uninitialized scoped_array
174 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:scoped_array
[all...]
/external/chromium/googleurl/base/
H A Dscoped_ptr.h132 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to
133 // is guaranteed, either on destruction of the scoped_array or via an explicit
137 class scoped_array { class
142 scoped_array(scoped_array const &);
143 scoped_array & operator=(scoped_array const &);
149 explicit scoped_array(T* p = 0) : ptr(p) {} function in class:scoped_array
151 ~scoped_array() {
183 void swap(scoped_array
[all...]
/external/chromium/third_party/libjingle/source/talk/base/
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:talk_base
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:talk_base::scoped_array
136 ~scoped_array() {
147 // Delete last, in case arr destructor indirectly results in ~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/libjingle/source/talk/base/
H A Dscoped_ptr.h124 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to
125 // is guaranteed, either on destruction of the scoped_array or via an explicit
129 class scoped_array { class in namespace:talk_base
134 scoped_array(scoped_array const &);
135 scoped_array & operator=(scoped_array const &);
141 explicit scoped_array(T* p = NULL) : ptr(p) {} function in class:talk_base::scoped_array
143 ~scoped_array() {
154 // Delete last, in case arr destructor indirectly results in ~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:__anon13873
60 scoped_array(T* data) : data_(data) { } function in class:__anon13873::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:__anon13874
98 scoped_array(T* p) : p_(p) { } function in class:__anon13874::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:__anon13916
60 scoped_array(T* data) : data_(data) { } function in class:__anon13916::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:__anon13917
98 scoped_array(T* p) : p_(p) { } function in class:__anon13917::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.h449 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
452 template <class C> class scoped_array;
541 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
544 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
545 // or is NULL. A scoped_array<C> owns the object that it points to.
547 // Size: sizeof(scoped_array<C>) == sizeof(C*)
549 class scoped_array { class in namespace:google::protobuf::internal
556 // There is no way to create an uninitialized scoped_array.
558 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:google::protobuf::internal::scoped_array
562 ~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.cpp464 template <class C> struct scoped_array { struct in namespace:PR12061
465 scoped_array(C* p = __null);
468 Foo() : a_(new scoped_array<int>[5]) { }
469 scoped_array< scoped_array<int> > a_;

Completed in 615 milliseconds