/ndk/sources/cxx-stl/llvm-libc++/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/marisa-trie/lib/marisa/ |
container.h | 37 explicit Container(T *ptr) : ptr_(ptr) {} 38 Container(const Container &container) : ptr_(container.ptr_) {} 41 ptr_[i] = value; 45 return ptr_ != NULL; 49 T *ptr_; member in class:marisa::Container
|
query.h | 12 Query(const char *ptr, std::size_t length) : ptr_(ptr), length_(length) {} 13 Query(const Query &query) : ptr_(query.ptr_), length_(query.length_) {} 16 str->insert(0, ptr_, length_); 21 return ptr_[i]; 29 const char *ptr_; member in class:marisa::Query
|
mapper.h | 33 return ptr_ != NULL; 40 const void *ptr_; member in class:marisa::Mapper
|
marisa-string.h | 10 String() : ptr_(NULL), length_(0) {} 11 explicit String(const char *str) : ptr_(str), length_(0) { 17 : ptr_(ptr), length_(length) {} 18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {} 22 return String(ptr_ + pos, length); 26 ptr_ = str.ptr_; 33 return ptr_[i]; 37 return ptr_; 44 const char *ptr_; member in class:marisa::String 116 const char *ptr_; member in class:marisa::RString [all...] |
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
container.h | 37 explicit Container(T *ptr) : ptr_(ptr) {} 38 Container(const Container &container) : ptr_(container.ptr_) {} 41 ptr_[i] = value; 45 return ptr_ != NULL; 49 T *ptr_; member in class:marisa_alpha::Container
|
query.h | 12 Query(const char *ptr, std::size_t length) : ptr_(ptr), length_(length) {} 13 Query(const Query &query) : ptr_(query.ptr_), length_(query.length_) {} 16 str->insert(0, ptr_, length_); 21 return ptr_[i]; 29 const char *ptr_; member in class:marisa_alpha::Query
|
mapper.h | 34 return ptr_ != NULL; 41 const void *ptr_; member in class:marisa_alpha::Mapper
|
marisa-string.h | 10 String() : ptr_(NULL), length_(0) {} 11 explicit String(const char *str) : ptr_(str), length_(0) { 17 : ptr_(ptr), length_(length) {} 18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {} 22 return String(ptr_ + pos, length); 26 ptr_ = str.ptr_; 33 return ptr_[i]; 37 return ptr_; 44 const char *ptr_; member in class:marisa_alpha::String 116 const char *ptr_; member in class:marisa_alpha::RString [all...] |
/external/chromium/base/memory/ |
scoped_ptr_unittest.cc | 13 ConDecLogger() : ptr_(NULL) { } 15 ~ConDecLogger() { --*ptr_; } 17 void set_ptr(int* ptr) { ptr_ = ptr; ++*ptr_; } 22 int* ptr_; member in class:__anon3660::ConDecLogger
|
scoped_ptr.h | 69 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } 72 // We don't need to test ptr_ == NULL because C++ does that for us. 75 delete ptr_; 82 if (p != ptr_) { 84 delete ptr_; 85 ptr_ = p; 92 assert(ptr_ != NULL); 93 return *ptr_; 96 assert(ptr_ != NULL); 97 return ptr_; 126 C* ptr_; member in class:scoped_ptr 350 C* ptr_; member in class:scoped_ptr_malloc [all...] |
weak_ptr.h | 156 WeakPtr() : ptr_(NULL) { 161 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other), ptr_(other.get()) { 164 T* get() const { return ref_.is_valid() ? ptr_ : NULL; } 178 ptr_ = NULL; 186 : WeakPtrBase(ref), ptr_(ptr) { 191 T* ptr_; member in class:base::WeakPtr 225 explicit WeakPtrFactory(T* ptr) : ptr_(ptr) { 229 return WeakPtr<T>(weak_reference_owner_.GetRef(), ptr_); 249 T* ptr_; member in class:base::WeakPtrFactory
|
ref_counted.h | 220 scoped_refptr() : ptr_(NULL) { 223 scoped_refptr(T* p) : ptr_(p) { 224 if (ptr_) 225 ptr_->AddRef(); 228 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 229 if (ptr_) 230 ptr_->AddRef(); 234 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 235 if (ptr_) 290 T* ptr_; member in class:scoped_refptr [all...] |
/external/icu4c/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/webrtc/src/system_wrappers/interface/ |
scoped_refptr.h | 64 scoped_refptr() : ptr_(NULL) { 67 scoped_refptr(T* p) : ptr_(p) { 68 if (ptr_) 69 ptr_->AddRef(); 72 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 73 if (ptr_) 74 ptr_->AddRef(); 78 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 79 if (ptr_) 133 T* ptr_; member in class:webrtc::scoped_refptr [all...] |
/external/chromium/base/ |
openssl_util.h | 20 ScopedOpenSSL() : ptr_(NULL) { } 21 explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { } 26 T* get() const { return ptr_; } 28 if (ptr != ptr_) { 29 if (ptr_) (*destructor)(ptr_); 30 ptr_ = ptr; 34 T* result = ptr_; 35 ptr_ = NULL; 40 T* ptr_; member in class:base::ScopedOpenSSL [all...] |
bind_helpers.h | 194 explicit ConstRefWrapper(const T& o) : ptr_(&o) {} 195 const T& get() { return *ptr_; } 197 const T* ptr_; member in class:base::internal::ConstRefWrapper
|
/external/chromium/base/threading/ |
simple_thread_unittest.cc | 17 SetIntRunner(int* ptr, int val) : ptr_(ptr), val_(val) { } 21 *ptr_ = val_; 25 int* ptr_; member in class:base::__anon3742::SetIntRunner
|
thread_local_unittest.cc | 49 : ThreadLocalTesterBase(tlp, done), ptr_(NULL) { } 52 void set_ptr(ThreadLocalTesterBase** ptr) { ptr_ = ptr; } 56 *ptr_ = tlp_->Get(); 61 ThreadLocalTesterBase** ptr_; member in class:base::__anon3746::GetThreadLocal
|
/external/chromium/crypto/ |
openssl_util.h | 19 ScopedOpenSSL() : ptr_(NULL) { } 20 explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { } 25 T* get() const { return ptr_; } 27 if (ptr != ptr_) { 28 if (ptr_) (*destructor)(ptr_); 29 ptr_ = ptr; 34 T* ptr_; member in class:crypto::ScopedOpenSSL
|
/external/clang/test/SemaCXX/ |
arrow-operator.cpp | 46 wrapped_ptr(T* ptr) : ptr_(ptr) {} 47 T* operator->() { return ptr_; } 50 T *ptr_; member in class:arrow_suggest::wrapped_ptr
|
/external/valgrind/unittest/ |
memory_unittest.cc | 133 explicit MyClass(int size) : ptr_(NULL) { 134 ptr_ = realloc(ptr_, size); 137 free(ptr_); 140 void *ptr_; member in class:HeapTests::MyClass
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/ |
stack_allocator.h | 11 char* ptr_; member in class:stack_allocator 23 stack_allocator() : ptr_(buf_) {} 32 if (n > N - (ptr_ - buf_) / sizeof(value_type)) 34 pointer r = (T*)ptr_; 35 ptr_ += n * sizeof(T); 40 if ((char*)(p + n) == ptr_) 41 ptr_ = (char*)p;
|
/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/compiler-rt/lib/sanitizer_common/ |
sanitizer_common.h | 73 ptr_ = (T*)MmapOrDie(cnt * sizeof(T), "InternalScopedBuffer"); 76 UnmapOrDie(ptr_, cnt_ * sizeof(T)); 78 T &operator[](uptr i) { return ptr_[i]; } 79 T *data() { return ptr_; } 83 T *ptr_; member in class:__sanitizer::InternalScopedBuffer
|