/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:__anon2225::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_) 289 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* data, int32_t len) { ptr_ = data; length_ = len; } 162 ptr_ += n;
|
/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
|
string_piece.h | 49 StringPiece() : ptr_(NULL), length_(0) { } 51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } 53 : ptr_(str.data()), length_(str.size()) { } 55 : ptr_(offset), length_(len) { } 61 const char* data() const { return ptr_; } 67 ptr_ = NULL; 71 ptr_ = data; 75 ptr_ = str; 79 ptr_ = reinterpret_cast<const char*>(data); 83 char operator[](size_type i) const { return ptr_[i]; 163 const char* ptr_; member in class:base::StringPiece [all...] |
/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::__anon2307::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::__anon2311::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/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
|
/external/skia/src/images/ |
bmpdecoderhelper.h | 33 T* ptr_; member in class:scoped_array 38 explicit scoped_array(T* p = 0) : ptr_(p) {} 40 delete[] ptr_; 44 if (p != ptr_) { 45 delete[] ptr_; 46 ptr_ = p; 51 return ptr_[i];
|
/external/v8/src/ |
counters.h | 122 int* ptr_; member in struct:v8::internal::StatsCounter 173 return ptr_; 175 ptr_ = FindLocationInStatsTable(); 176 return ptr_;
|
/external/clang/test/SemaCXX/ |
constructor-initializer.cpp | 217 void* ptr_; member in union:PR7402::S::__anon4968 221 template <typename T> S(T) : ptr_(0) { }
|
/external/chromium/chrome/browser/chromeos/login/ |
login_utils.cc | 187 if (!ptr_.get()) 189 return ptr_.get(); 193 ptr_.reset(ptr); 202 scoped_ptr<LoginUtils> ptr_; member in class:chromeos::LoginUtilsWrapper
|
/external/chromium/sdch/open-vcdiff/src/gtest/internal/ |
gtest-port.h | 302 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 305 T& operator*() const { return *ptr_; } 306 T* operator->() const { return ptr_; } 307 T* get() const { return ptr_; } 310 T* const ptr = ptr_; 311 ptr_ = NULL; 316 if (p != ptr_) { 318 delete ptr_; 320 ptr_ = p; 324 T* ptr_; member in class:testing::internal::scoped_ptr [all...] |
/external/chromium/testing/gmock/include/gmock/ |
gmock-actions.h | 640 AssignAction(T1* ptr, T2 value) : ptr_(ptr), value_(value) {} 644 *ptr_ = value_; 648 T1* const ptr_; member in class:testing::internal::AssignAction [all...] |
/external/gtest/include/gtest/internal/ |
gtest-port.h | 497 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 500 T& operator*() const { return *ptr_; } 501 T* operator->() const { return ptr_; } 502 T* get() const { return ptr_; } 505 T* const ptr = ptr_; 506 ptr_ = NULL; 511 if (p != ptr_) { 513 delete ptr_; 515 ptr_ = p; 519 T* ptr_; member in class:testing::internal::scoped_ptr [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
gtest-port.h | 591 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 594 T& operator*() const { return *ptr_; } 595 T* operator->() const { return ptr_; } 596 T* get() const { return ptr_; } 599 T* const ptr = ptr_; 600 ptr_ = NULL; 605 if (p != ptr_) { 607 delete ptr_; 609 ptr_ = p; 613 T* ptr_; member in class:testing::internal::scoped_ptr [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
common.h | 424 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } 427 // We don't need to test ptr_ == NULL because C++ does that for us. 430 delete ptr_; 437 if (p != ptr_) { 439 delete ptr_; 440 ptr_ = p; 447 assert(ptr_ != NULL); 448 return *ptr_; 451 assert(ptr_ != NULL); 452 return ptr_; 481 C* ptr_; member in class:google::protobuf::internal::scoped_ptr [all...] |
/external/chromium/testing/gtest/include/gtest/internal/ |
gtest-port.h | 762 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 765 T& operator*() const { return *ptr_; } 766 T* operator->() const { return ptr_; } 767 T* get() const { return ptr_; } 770 T* const ptr = ptr_; 771 ptr_ = NULL; 776 if (p != ptr_) { 778 delete ptr_; 780 ptr_ = p; 784 T* ptr_; member in class:testing::internal::scoped_ptr [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-port.h | 632 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 635 T& operator*() const { return *ptr_; } 636 T* operator->() const { return ptr_; } 637 T* get() const { return ptr_; } 640 T* const ptr = ptr_; 641 ptr_ = NULL; 646 if (p != ptr_) { 648 delete ptr_; 650 ptr_ = p; 654 T* ptr_; member in class:testing::internal::scoped_ptr [all...] |