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

1 2 3 4 5

  /external/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();}
  /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/chromium_org/third_party/libjingle/source/talk/base/
scoped_ref_ptr.h 90 scoped_refptr() : ptr_(NULL) {
93 scoped_refptr(T* p) : ptr_(p) {
94 if (ptr_)
95 ptr_->AddRef();
98 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
99 if (ptr_)
100 ptr_->AddRef();
104 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
105 if (ptr_)
159 T* ptr_; member in class:talk_base::scoped_refptr
    [all...]
  /external/chromium_org/third_party/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...]
  /external/chromium_org/third_party/webrtc/system_wrappers/interface/
scoped_refptr.h 71 scoped_refptr() : ptr_(NULL) {
74 scoped_refptr(T* p) : ptr_(p) {
75 if (ptr_)
76 ptr_->AddRef();
79 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
80 if (ptr_)
81 ptr_->AddRef();
85 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
86 if (ptr_)
140 T* ptr_; member in class:webrtc::scoped_refptr
    [all...]
  /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_org/content/public/browser/
notification_source.h 21 NotificationSource(const NotificationSource& other) : ptr_(other.ptr_) {}
27 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); }
30 return ptr_ != other.ptr_;
33 return ptr_ == other.ptr_;
37 explicit NotificationSource(const void* ptr) : ptr_(ptr) {}
41 const void* ptr_; member in class:content::NotificationSource
54 T* ptr() const { return static_cast<T*>(const_cast<void*>(ptr_)); }
    [all...]
notification_details.h 21 NotificationDetails() : ptr_(NULL) {}
22 NotificationDetails(const NotificationDetails& other) : ptr_(other.ptr_) {}
28 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); }
31 return ptr_ != other.ptr_;
35 return ptr_ == other.ptr_;
39 explicit NotificationDetails(const void* ptr) : ptr_(ptr) {}
43 const void* ptr_; member in class:content::NotificationDetails
    [all...]
  /external/lldb/include/lldb/Utility/
PythonPointer.h 29 element_type* ptr_; member in class:lldb_private::PythonPointer
34 ptr_(p),
38 Py_INCREF(ptr_);
42 ptr_(r.ptr_),
46 Py_INCREF(ptr_);
52 Py_XDECREF(ptr_);
58 return PythonPointer(ptr_,true);
64 return PythonPointer(ptr_, false);
67 element_type get() const {return ptr_;}
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/
raw_printer.cc 43 ptr_(buf),
46 *ptr_ = '\0';
51 if (limit_ > ptr_) {
54 int avail = limit_ - ptr_;
57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap);
61 ptr_ = limit_;
64 ptr_ = limit_;
66 ptr_ += r;
raw_printer.h 59 int length() const { return (ptr_ - base_); }
62 int space_left() const { return (limit_ - ptr_); }
74 // We can write into [ptr_ .. limit_-1].
78 // Invariants: *ptr_ == \0
81 char* ptr_; // Where should we write next member in class:base::RawPrinter
  /external/chromium_org/third_party/tcmalloc/vendor/src/
raw_printer.cc 43 ptr_(buf),
46 *ptr_ = '\0';
51 if (limit_ > ptr_) {
54 int avail = limit_ - ptr_;
57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap);
61 ptr_ = limit_;
64 ptr_ = limit_;
66 ptr_ += r;
raw_printer.h 59 int length() const { return (ptr_ - base_); }
62 int space_left() const { return (limit_ - ptr_); }
74 // We can write into [ptr_ .. limit_-1].
78 // Invariants: *ptr_ == \0
81 char* ptr_; // Where should we write next member in class:base::RawPrinter
  /external/chromium_org/base/
big_endian.cc 12 : ptr_(buf), end_(ptr_ + len) {}
15 if (ptr_ + len > end_)
17 ptr_ += len;
22 if (ptr_ + len > end_)
24 memcpy(out, ptr_, len);
25 ptr_ += len;
30 if (ptr_ + len > end_)
32 *out = base::StringPiece(ptr_, len);
33 ptr_ += len
    [all...]
  /external/chromium_org/skia/ext/
refptr.h 47 RefPtr() : ptr_(NULL) {}
50 : ptr_(other.get()) {
51 SkSafeRef(ptr_);
56 : ptr_(other.get()) {
57 SkSafeRef(ptr_);
65 SkRefCnt_SafeAssign(ptr_, other.get());
71 SkRefCnt_SafeAssign(ptr_, other.get());
76 T* to_unref = ptr_;
77 ptr_ = NULL;
81 T* get() const { return ptr_; }
91 T* ptr_; member in class:skia::RefPtr
    [all...]
  /external/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...]
  /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/chromium_org/base/win/
scoped_comptr.h 55 if (ptr_ != NULL) {
56 ptr_->Release();
57 ptr_ = NULL;
64 Interface* p = ptr_;
65 ptr_ = NULL;
71 DCHECK(!ptr_);
72 ptr_ = p;
80 DCHECK(!ptr_) << "Object leak. Pointer must be NULL";
81 return &ptr_;
92 DCHECK(ptr_ != NULL)
    [all...]
  /external/chromium_org/mojo/public/cpp/bindings/
struct_ptr.h 32 StructPtr() : ptr_(NULL) {}
34 delete ptr_;
37 StructPtr(RValue other) : ptr_(NULL) { Take(other.object); }
49 if (ptr_) {
50 delete ptr_;
51 ptr_ = NULL;
55 bool is_null() const { return ptr_ == NULL; }
58 assert(ptr_);
59 return *ptr_;
62 assert(ptr_);
86 Struct* ptr_; member in class:mojo::StructPtr
    [all...]
  /external/chromium_org/third_party/cld/base/
scoped_ptr.h 54 explicit scoped_ptr(C* p = NULL) : ptr_(p) { }
57 // We don't need to test ptr_ == NULL because C++ does that for us.
60 delete ptr_;
67 if (p != ptr_) {
69 delete ptr_;
70 ptr_ = p;
77 assert(ptr_ != NULL);
78 return *ptr_;
81 assert(ptr_ != NULL);
82 return ptr_;
111 C* ptr_; member in class:scoped_ptr
395 C* ptr_; member in class:scoped_ptr_malloc
    [all...]
  /external/chromium_org/third_party/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/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/chromium_org/crypto/
openssl_util.h 19 ScopedOpenSSL() : ptr_(NULL) { }
20 explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { }
25 T* get() const { return ptr_; }
27 T* ptr = ptr_;
28 ptr_ = NULL;
32 if (ptr != ptr_) {
33 if (ptr_) (*destructor)(ptr_);
34 ptr_ = ptr;
39 T* ptr_; member in class:crypto::ScopedOpenSSL
    [all...]
  /external/chromium_org/base/memory/
ref_counted.h 268 scoped_refptr() : ptr_(NULL) {
271 scoped_refptr(T* p) : ptr_(p) {
272 if (ptr_)
273 ptr_->AddRef();
276 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
277 if (ptr_)
278 ptr_->AddRef();
282 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
283 if (ptr_)
334 T* ptr_; member in class:scoped_refptr
    [all...]
  /external/chromium_org/mojo/public/cpp/bindings/lib/
fixed_buffer.cc 19 : ptr_(NULL),
23 ptr_ = static_cast<char*>(calloc(size_, 1));
27 free(ptr_);
38 char* result = ptr_ + cursor_;
45 char* ptr = ptr_;
46 ptr_ = NULL;

Completed in 1085 milliseconds

1 2 3 4 5