HomeSort by relevance Sort by last modified time
    Searched full:ptr_ (Results 1 - 25 of 38) sorted by null

1 2

  /external/valgrind/tsan/
dense_multimap.h 48 ptr_[0] = t1;
49 ptr_[1] = t2;
51 ptr_[0] = t2;
52 ptr_[1] = t1;
60 std::copy(m.begin(), m.end(), ptr_);
68 std::copy(m.begin(), it, ptr_);
69 ptr_[it - m.begin()] = t;
70 std::copy(it, m.end(), ptr_ + (it - m.begin()) + 1);
79 std::copy(m.begin(), it, ptr_);
80 std::copy(it + 1, m.end(), ptr_ + (it - m.begin()))
    [all...]
  /external/chromium/base/
string_piece.cc 33 memcpy(buf, ptr_ + pos, ret);
41 const char* result = std::search(ptr_ + pos, ptr_ + length_,
42 s.ptr_, s.ptr_ + s.length_);
43 const size_type xpos = result - ptr_;
51 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
52 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos
    [all...]
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...]
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/memory/
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...]
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...]
ref_counted_unittest.cc 20 SelfAssign** pptr = &ptr_;
21 EXPECT_EQ(*pptr, ptr_);
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
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
  /external/chromium/base/win/
scoped_comptr.h 56 if (ptr_ != NULL) {
57 ptr_->Release();
58 ptr_ = NULL;
65 Interface* p = ptr_;
66 ptr_ = NULL;
72 DCHECK(!ptr_);
73 ptr_ = p;
81 DCHECK(!ptr_) << "Object leak. Pointer must be NULL";
82 return &ptr_;
93 DCHECK(ptr_ != NULL)
    [all...]
  /external/pcre/
pcre_stringpiece.h.android 65 const char* ptr_;
73 : ptr_(NULL), length_(0) { }
75 : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { }
77 : ptr_(reinterpret_cast<const char*>(str)),
78 length_(static_cast<int>(strlen(ptr_))) { }
80 : ptr_(str.data()), length_(static_cast<int>(str.size())) { }
82 : ptr_(offset), length_(len) { }
90 const char* data() const { return ptr_; }
94 void clear() { ptr_ = NULL; length_ = 0;
    [all...]
pcre_stringpiece.h.in 63 const char* ptr_;
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...]
  /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/icu4c/common/
stringpiece.cpp 17 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
25 ptr_ = x.ptr_ + pos;
40 ptr_ = x.ptr_ + pos;
45 ptr_ = str;
  /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/chromium/base/threading/
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
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
  /external/chromium/chrome/common/
native_window_notification_source.h 26 return static_cast<gfx::NativeWindow>(const_cast<void*>(ptr_));
  /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/qemu/android/utils/
assert.h 104 # define _ANDROID_NEVER_NULL(ptr_) \
106 void* never_ptr_ = (ptr_); \
109 android_assert_fail("%s is NULL\n", #ptr_); \
142 # define ANEVER_NULL(ptr_) _ANDROID_NEVER_NULL(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
  /external/v8/src/
counters.h 122 int* ptr_; member in struct:v8::internal::StatsCounter
173 return ptr_;
175 ptr_ = FindLocationInStatsTable();
176 return ptr_;
  /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/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...]

Completed in 614 milliseconds

1 2