Home
last modified time | relevance | path

Searched refs:ptr_ (Results 1 – 25 of 90) sorted by relevance

1234

/external/chromium_org/third_party/webrtc/base/
Dscoped_ref_ptr.h73 scoped_refptr() : ptr_(NULL) { in scoped_refptr()
76 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr()
77 if (ptr_) in scoped_refptr()
78 ptr_->AddRef(); in scoped_refptr()
81 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr()
82 if (ptr_) in scoped_refptr()
83 ptr_->AddRef(); in scoped_refptr()
87 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr()
88 if (ptr_) in scoped_refptr()
89 ptr_->AddRef(); in scoped_refptr()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/base/
Dscoped_ref_ptr.h90 scoped_refptr() : ptr_(NULL) { in scoped_refptr()
93 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr()
94 if (ptr_) in scoped_refptr()
95 ptr_->AddRef(); in scoped_refptr()
98 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr()
99 if (ptr_) in scoped_refptr()
100 ptr_->AddRef(); in scoped_refptr()
104 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr()
105 if (ptr_) in scoped_refptr()
106 ptr_->AddRef(); in scoped_refptr()
[all …]
/external/webrtc/src/system_wrappers/interface/
Dscoped_refptr.h64 scoped_refptr() : ptr_(NULL) { in scoped_refptr()
67 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr()
68 if (ptr_) in scoped_refptr()
69 ptr_->AddRef(); in scoped_refptr()
72 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr()
73 if (ptr_) in scoped_refptr()
74 ptr_->AddRef(); in scoped_refptr()
78 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr()
79 if (ptr_) in scoped_refptr()
80 ptr_->AddRef(); in scoped_refptr()
[all …]
/external/chromium_org/third_party/webrtc/system_wrappers/interface/
Dscoped_refptr.h71 scoped_refptr() : ptr_(NULL) { in scoped_refptr()
74 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr()
75 if (ptr_) in scoped_refptr()
76 ptr_->AddRef(); in scoped_refptr()
79 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr()
80 if (ptr_) in scoped_refptr()
81 ptr_->AddRef(); in scoped_refptr()
85 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr()
86 if (ptr_) in scoped_refptr()
87 ptr_->AddRef(); in scoped_refptr()
[all …]
/external/libcxx/test/support/
Dmin_allocator.h26 const void* ptr_; variable
29 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer()
31 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer()
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_; variable
46 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer()
53 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer()
55 explicit operator bool() const {return ptr_ != nullptr;}
57 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
[all …]
/external/chromium_org/base/
Dbig_endian.cc12 : ptr_(buf), end_(ptr_ + len) {} in BigEndianReader()
15 if (ptr_ + len > end_) in Skip()
17 ptr_ += len; in Skip()
22 if (ptr_ + len > end_) in ReadBytes()
24 memcpy(out, ptr_, len); in ReadBytes()
25 ptr_ += len; in ReadBytes()
30 if (ptr_ + len > end_) in ReadPiece()
32 *out = base::StringPiece(ptr_, len); in ReadPiece()
33 ptr_ += len; in ReadPiece()
39 if (ptr_ + sizeof(T) > end_) in Read()
[all …]
/external/chromium_org/third_party/cld/base/
Dscoped_ptr.h54 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function
60 delete ptr_; in ~scoped_ptr() local
67 if (p != ptr_) {
69 delete ptr_; variable
70 ptr_ = p;
77 assert(ptr_ != NULL);
78 return *ptr_;
81 assert(ptr_ != NULL);
82 return ptr_;
84 C* get() const { return ptr_; } in get()
[all …]
/external/chromium_org/base/memory/
Dref_counted.h268 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_)
284 ptr_->AddRef();
[all …]
/external/chromium_org/base/win/
Dscoped_comptr.h55 if (ptr_ != NULL) { in Release()
56 ptr_->Release(); in Release()
57 ptr_ = NULL; in Release()
64 Interface* p = ptr_; in Detach()
65 ptr_ = NULL; in Detach()
71 DCHECK(!ptr_); in Attach()
72 ptr_ = p; in Attach()
80 DCHECK(!ptr_) << "Object leak. Pointer must be NULL"; in Receive()
81 return &ptr_; in Receive()
92 DCHECK(ptr_ != NULL); in QueryInterface()
[all …]
/external/lldb/include/lldb/Utility/
DPythonPointer.h29 element_type* ptr_;
34 ptr_(p), in ptr_() function
38 Py_INCREF(ptr_); in ptr_()
42 ptr_(r.ptr_),
46 Py_INCREF(ptr_);
52 Py_XDECREF(ptr_); in ~PythonPointer()
58 return PythonPointer(ptr_,true); in StealReference()
64 return PythonPointer(ptr_, false); in DuplicateReference()
67 element_type get() const {return ptr_;} in get()
69 bool IsNull() { return ptr_ == NULL; } in IsNull()
[all …]
/external/chromium_org/skia/ext/
Drefptr.h47 RefPtr() : ptr_(NULL) {} in RefPtr()
50 : ptr_(other.get()) { in RefPtr()
51 SkSafeRef(ptr_); in RefPtr()
56 : ptr_(other.get()) { in RefPtr()
57 SkSafeRef(ptr_); in RefPtr()
65 SkRefCnt_SafeAssign(ptr_, other.get());
71 SkRefCnt_SafeAssign(ptr_, other.get());
76 T* to_unref = ptr_; in clear()
77 ptr_ = NULL; in clear()
81 T* get() const { return ptr_; } in get()
[all …]
/external/regex-re2/re2/
Dstringpiece.h31 const char* ptr_;
38 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece()
40 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } in StringPiece()
42 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece()
43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece()
49 const char* data() const { return ptr_; } in data()
54 void clear() { ptr_ = NULL; length_ = 0; } in clear()
55 void set(const char* data, int len) { ptr_ = data; length_ = len; } in set()
57 ptr_ = str; in set()
64 ptr_ = reinterpret_cast<const char*>(data); in set()
[all …]
/external/chromium_org/mojo/public/cpp/bindings/
Dstruct_ptr.h32 StructPtr() : ptr_(NULL) {} in StructPtr()
34 delete ptr_; in ~StructPtr() local
37 StructPtr(RValue other) : ptr_(NULL) { Take(other.object); } in StructPtr()
49 if (ptr_) { in reset()
50 delete ptr_; in reset() local
51 ptr_ = NULL; in reset()
55 bool is_null() const { return ptr_ == NULL; } in is_null()
58 assert(ptr_);
59 return *ptr_;
62 assert(ptr_);
[all …]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
Dstring_piece.cc39 memcpy(buf, ptr_ + pos, ret); in copy()
47 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
48 s.ptr_, s.ptr_ + s.length_); in find()
49 const size_type xpos = result - ptr_; in find()
57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
68 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind()
69 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
70 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
78 if (ptr_[i] == c) in rfind()
[all …]
Dstring_piece.h49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece()
51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece()
53 : ptr_(str.data()), length_(str.size()) { } in StringPiece()
55 : ptr_(offset), length_(len) { } in StringPiece()
61 const char* data() const { return ptr_; } in data()
67 ptr_ = NULL; in clear()
71 ptr_ = data; in set()
75 ptr_ = str; in set()
79 ptr_ = reinterpret_cast<const char*>(data); in set()
83 char operator[](size_type i) const { return ptr_[i]; }
[all …]
/external/regex-re2/util/
Dstringpiece.cc33 target->assign(ptr_, length_); in CopyToString()
38 memcpy(buf, ptr_ + pos, ret); in copy()
46 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
47 s.ptr_, s.ptr_ + s.length_); in find()
48 const size_type xpos = result - ptr_; in find()
56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
57 return result != ptr_ + length_ ? result - ptr_ : npos; in find()
65 const char* last = ptr_ + min(ulen - s.length_, pos) + s.length_; in rfind()
66 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
67 return result != last ? result - ptr_ : npos; in rfind()
[all …]
/external/chromium_org/third_party/re2/util/
Dstringpiece.cc33 target->assign(ptr_, length_); in CopyToString()
38 memcpy(buf, ptr_ + pos, ret); in copy()
46 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
47 s.ptr_, s.ptr_ + s.length_); in find()
48 const size_type xpos = result - ptr_; in find()
56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
57 return result != ptr_ + length_ ? result - ptr_ : npos; in find()
65 const char* last = ptr_ + min(ulen - s.length_, pos) + s.length_; in rfind()
66 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
67 return result != last ? result - ptr_ : npos; in rfind()
[all …]
/external/chromium_org/third_party/re2/re2/
Dstringpiece.h34 const char* ptr_;
41 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece()
43 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } in StringPiece()
45 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece()
46 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece()
52 const char* data() const { return ptr_; } in data()
57 void clear() { ptr_ = NULL; length_ = 0; } in clear()
58 void set(const char* data, int len) { ptr_ = data; length_ = len; } in set()
60 ptr_ = str; in set()
67 ptr_ = reinterpret_cast<const char*>(data); in set()
[all …]
/external/chromium_org/content/public/browser/
Dnotification_details.h21 NotificationDetails() : ptr_(NULL) {} in NotificationDetails()
22 NotificationDetails(const NotificationDetails& other) : ptr_(other.ptr_) {} in NotificationDetails()
28 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); } in map_key()
31 return ptr_ != other.ptr_;
35 return ptr_ == other.ptr_;
39 explicit NotificationDetails(const void* ptr) : ptr_(ptr) {} in NotificationDetails()
43 const void* ptr_; variable
56 T* ptr() const { return static_cast<T*>(const_cast<void*>(ptr_)); } in ptr()
Dnotification_source.h21 NotificationSource(const NotificationSource& other) : ptr_(other.ptr_) {} in NotificationSource()
27 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); } in map_key()
30 return ptr_ != other.ptr_;
33 return ptr_ == other.ptr_;
37 explicit NotificationSource(const void* ptr) : ptr_(ptr) {} in NotificationSource()
41 const void* ptr_; variable
54 T* ptr() const { return static_cast<T*>(const_cast<void*>(ptr_)); } in ptr()
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_util.cpp29 Assign(other.ptr_, other.size_); in String()
43 if (ptr_ != const_cast<char*>(kEmpty)) { in ~String()
44 free(ptr_); in ~String()
45 ptr_ = const_cast<char*>(kEmpty); in ~String()
57 memcpy(ptr_, str, len); in Assign()
58 ptr_[len] = '\0'; in Assign()
67 memcpy(ptr_ + old_size, str, len); in Append()
81 memset(ptr_ + size_, '\0', new_size - size_); in Resize()
84 if (ptr_ != kEmpty) in Resize()
85 ptr_[size_] = '\0'; in Resize()
[all …]
/external/ceres-solver/include/ceres/internal/
Dscoped_ptr.h70 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function
76 delete ptr_; in ~scoped_ptr() local
83 if (p != ptr_) {
85 delete ptr_; variable
86 ptr_ = p;
93 assert(ptr_ != NULL);
94 return *ptr_;
97 assert(ptr_ != NULL);
98 return ptr_;
100 C* get() const { return ptr_; } in get()
[all …]
/external/chromium_org/crypto/
Dopenssl_util.h19 ScopedOpenSSL() : ptr_(NULL) { } in ScopedOpenSSL()
20 explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { } in ScopedOpenSSL()
25 T* get() const { return ptr_; } in get()
27 T* ptr = ptr_; in release()
28 ptr_ = NULL; in release()
32 if (ptr != ptr_) { in reset()
33 if (ptr_) (*destructor)(ptr_); in reset()
34 ptr_ = ptr; in reset()
39 T* ptr_;
/external/chromium_org/third_party/tcmalloc/chromium/src/
Draw_printer.cc43 ptr_(buf), in RawPrinter()
46 *ptr_ = '\0'; in RawPrinter()
51 if (limit_ > ptr_) { in Printf()
54 int avail = limit_ - ptr_; in Printf()
57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap); in Printf()
61 ptr_ = limit_; in Printf()
64 ptr_ = limit_; in Printf()
66 ptr_ += r; in Printf()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Draw_printer.cc43 ptr_(buf), in RawPrinter()
46 *ptr_ = '\0'; in RawPrinter()
51 if (limit_ > ptr_) { in Printf()
54 int avail = limit_ - ptr_; in Printf()
57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap); in Printf()
61 ptr_ = limit_; in Printf()
64 ptr_ = limit_; in Printf()
66 ptr_ += r; in Printf()

1234