/external/webrtc/webrtc/audio/ |
scoped_voe_interface.h | 27 : ptr_(T::GetInterface(e)) { 28 RTC_DCHECK(ptr_); 31 if (ptr_) { 32 ptr_->Release(); 36 RTC_DCHECK(ptr_); 37 return ptr_; 40 T* ptr_; member in class:webrtc::internal::ScopedVoEInterface
|
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/ |
reset_self.pass.cpp | 20 std::unique_ptr<A> ptr_; member in struct:A 22 A() : ptr_(this) {} 23 void reset() {ptr_.reset();}
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/ |
reset_self.pass.cpp | 20 std::unique_ptr<A> ptr_; member in struct:A 22 A() : ptr_(this) {} 23 void reset() {ptr_.reset();}
|
/external/protobuf/python/google/protobuf/pyext/ |
scoped_pyobject_ptr.h | 43 explicit ScopedPyObjectPtr(PyObject* p = NULL) : ptr_(p) { } 47 Py_XDECREF(ptr_); 54 if (p != ptr_) { 55 Py_XDECREF(ptr_); 56 ptr_ = p; 58 return ptr_; 63 PyObject* p = ptr_; 64 ptr_ = NULL; 68 operator PyObject*() { return ptr_; } 71 assert(ptr_ != NULL) 89 PyObject* ptr_; member in class:google::ScopedPyObjectPtr [all...] |
/external/webrtc/webrtc/base/ |
scoped_ref_ptr.h | 73 scoped_refptr() : ptr_(NULL) { 76 scoped_refptr(T* p) : ptr_(p) { 77 if (ptr_) 78 ptr_->AddRef(); 81 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 82 if (ptr_) 83 ptr_->AddRef(); 87 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 88 if (ptr_) 142 T* ptr_; member in class:rtc::scoped_refptr [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
min_allocator.h | 26 const void* ptr_; member in class:min_pointer 29 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 31 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} 33 explicit operator bool() const {return ptr_ != nullptr;} 35 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 43 void* ptr_; member in class:min_pointer 46 min_pointer(std::nullptr_t) : ptr_(nullptr) {} 53 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) { 65 T* ptr_; member in class:min_pointer 135 const T* ptr_; member in class:min_pointer [all...] |
/external/pcre/dist/ |
pcre_stringpiece.h | 63 const char* ptr_; member in class:pcrecpp::StringPiece 71 : ptr_(NULL), length_(0) { } 73 : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { } 75 : ptr_(reinterpret_cast<const char*>(str)), 76 length_(static_cast<int>(strlen(ptr_))) { } 78 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } 80 : ptr_(offset), length_(len) { } 88 const char* data() const { return ptr_; } 92 void clear() { ptr_ = NULL; length_ = 0; [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
arenastring.h | 59 if (ptr_ == default_value) { 62 *ptr_ = value; 68 return *ptr_; 73 if (ptr_ == default_value) { 76 return ptr_; 85 if (ptr_ == default_value) { 90 // ptr_ is owned by the arena -- we need to return a copy. 91 released = new ::std::string(*ptr_); 93 released = ptr_; 95 ptr_ = const_cast< ::std::string* >(default_value) 285 ::std::string* ptr_; member in struct:google::protobuf::internal::ArenaStringPtr [all...] |
/art/runtime/ |
stride_iterator.h | 35 : ptr_(reinterpret_cast<uintptr_t>(ptr)), 40 return ptr_ == other.ptr_; 48 ptr_ += stride_; 54 ptr_ += stride_; 65 ptr_ += static_cast<ssize_t>(stride_) * delta; 70 return *reinterpret_cast<T*>(ptr_); 78 uintptr_t ptr_; member in class:art::StrideIterator
|
/external/libcxx/test/support/ |
min_allocator.h | 56 const void* ptr_; member in class:min_pointer 59 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} function in class:min_pointer 61 min_pointer(min_pointer<T> p) TEST_NOEXCEPT : ptr_(p.ptr_) {} function in class:min_pointer 63 explicit operator bool() const {return ptr_ != nullptr;} 65 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 73 void* ptr_; member in class:min_pointer 76 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} function in class:min_pointer 83 min_pointer(min_pointer<T> p) TEST_NOEXCEPT : ptr_(p.ptr_) { function in class:min_pointer 95 T* ptr_; member in class:min_pointer 97 explicit min_pointer(T* p) TEST_NOEXCEPT : ptr_(p) {} function in class:min_pointer 100 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} function in class:min_pointer 165 const T* ptr_; member in class:min_pointer [all...] |
/external/libchrome/base/win/ |
scoped_comptr.h | 56 if (this->ptr_ != NULL) { 57 this->ptr_->Release(); 58 this->ptr_ = NULL; 65 Interface* p = this->ptr_; 66 this->ptr_ = NULL; 72 DCHECK(!this->ptr_); 73 this->ptr_ = p; 81 DCHECK(!this->ptr_) << "Object leak. Pointer must be NULL"; 82 return &this->ptr_; 93 DCHECK(this->ptr_ != NULL) [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/stubs/ |
scoped_ptr.h | 68 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } 71 // We don't need to test ptr_ == NULL because C++ does that for us. 74 delete ptr_; 81 if (p != ptr_) { 83 delete ptr_; 84 ptr_ = p; 91 assert(ptr_ != NULL); 92 return *ptr_; 95 assert(ptr_ != NULL); 96 return ptr_; 125 C* ptr_; member in class:google::protobuf::internal::scoped_ptr [all...] |
shared_ptr.h | 111 shared_ptr() : ptr_(NULL), control_block_(NULL) {} 114 : ptr_(ptr), 125 : ptr_(NULL), 131 : ptr_(NULL), 140 if (ptr_ != ptr.ptr_) { 149 if (ptr_ != ptr.ptr_) { 166 if (ptr_ != NULL) { 168 delete ptr_; [all...] |
/external/regex-re2/util/ |
stringpiece.cc | 33 target->assign(ptr_, length_); 38 memcpy(buf, ptr_ + pos, ret); 46 const char* result = std::search(ptr_ + pos, ptr_ + length_, 47 s.ptr_, s.ptr_ + s.length_); 48 const size_type xpos = result - ptr_; 56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); 57 return result != ptr_ + length_ ? result - ptr_ : npos [all...] |
/external/google-breakpad/src/common/ |
scoped_ptr.h | 92 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } 95 // We don't need to test ptr_ == NULL because C++ does that for us. 98 delete ptr_; 105 if (p != ptr_) { 107 delete ptr_; 108 ptr_ = p; 115 assert(ptr_ != NULL); 116 return *ptr_; 119 assert(ptr_ != NULL); 120 return ptr_; 149 C* ptr_; member in class:google_breakpad::scoped_ptr 374 C* ptr_; member in class:google_breakpad::scoped_ptr_malloc [all...] |
/external/regex-re2/re2/ |
stringpiece.h | 31 const char* ptr_; member in class:re2::StringPiece 38 StringPiece() : ptr_(NULL), length_(0) { } 40 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } 42 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } 49 const char* data() const { return ptr_; } 54 void clear() { ptr_ = NULL; length_ = 0; } 55 void set(const char* data, int len) { ptr_ = data; length_ = len; } 57 ptr_ = str; 64 ptr_ = reinterpret_cast<const char*>(data) [all...] |
/external/libchrome/base/memory/ |
ref_counted.h | 271 scoped_refptr() : ptr_(NULL) { 274 scoped_refptr(T* p) : ptr_(p) { 275 if (ptr_) 276 AddRef(ptr_); 280 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 281 if (ptr_) 282 AddRef(ptr_); 287 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 288 if (ptr_) 391 T* ptr_; member in class:scoped_refptr [all...] |
/external/libweave/third_party/chromium/base/memory/ |
ref_counted.h | 258 scoped_refptr() : ptr_(NULL) { 261 scoped_refptr(T* p) : ptr_(p) { 262 if (ptr_) 263 AddRef(ptr_); 267 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 268 if (ptr_) 269 AddRef(ptr_); 274 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 275 if (ptr_) 378 T* ptr_; member in class:scoped_refptr [all...] |
/art/runtime/base/ |
stringpiece.cc | 29 return ptr_[i]; 34 target->assign(ptr_, length_); 39 memcpy(buf, ptr_ + pos, ret); 47 const char* result = std::search(ptr_ + pos, ptr_ + length_, s.ptr_, s.ptr_ + s.length_); 48 const size_type xpos = result - ptr_; 53 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)) [all...] |
/external/deqp/external/vulkancts/framework/vulkan/ |
vkStrUtil.cpp | 33 CharPtr (const char* ptr_) : ptr(ptr_) {}
|
/external/icu/icu4c/source/common/unicode/ |
stringpiece.h | 54 const char* ptr_; member in class:StringPiece 62 StringPiece() : ptr_(NULL), length_(0) { } 75 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } 83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } 111 const char* data() const { return ptr_; } 135 void clear() { ptr_ = NULL; length_ = 0; } 143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } 162 ptr_ += n;
|
/external/ceres-solver/include/ceres/internal/ |
scoped_ptr.h | 70 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } 73 // We don't need to test ptr_ == NULL because C++ does that for us. 76 delete ptr_; 83 if (p != ptr_) { 85 delete ptr_; 86 ptr_ = p; 93 assert(ptr_ != NULL); 94 return *ptr_; 97 assert(ptr_ != NULL); 98 return ptr_; 127 C* ptr_; member in class:ceres::internal::scoped_ptr [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
shared_ptr.h | 111 shared_ptr() : ptr_(NULL), control_block_(NULL) {} 114 : ptr_(ptr), 125 : ptr_(NULL), 131 : ptr_(NULL), 140 if (ptr_ != ptr.ptr_) { 149 if (ptr_ != ptr.ptr_) { 166 if (ptr_ != NULL) { 168 delete ptr_; [all...] |
/external/libcxx/test/std/containers/ |
stack_allocator.h | 20 char* ptr_; member in class:stack_allocator 32 stack_allocator() : ptr_(buf_) {} 41 if (n > N - (ptr_ - buf_) / sizeof(value_type)) { 48 pointer r = (T*)ptr_; 49 ptr_ += n * sizeof(T); 54 if ((char*)(p + n) == ptr_) 55 ptr_ = (char*)p;
|
/external/skia/src/images/ |
bmpdecoderhelper.h | 26 T* ptr_; member in class:scoped_array 31 explicit scoped_array(T* p = 0) : ptr_(p) {} 33 delete[] ptr_; 37 if (p != ptr_) { 38 delete[] ptr_; 39 ptr_ = p; 44 return ptr_[i];
|