Home
last modified time | relevance | path

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

1234

/external/protobuf/src/google/protobuf/
Darenastring.h59 if (ptr_ == default_value) { in Set()
62 *ptr_ = value; in Set()
68 return *ptr_; in Get()
73 if (ptr_ == default_value) { in Mutable()
76 return ptr_; in Mutable()
85 if (ptr_ == default_value) { in Release()
91 released = new ::std::string(*ptr_); in Release()
93 released = ptr_; in Release()
95 ptr_ = const_cast< ::std::string* >(default_value); in Release()
106 if (ptr_ == default_value) { in UnsafeArenaRelease()
[all …]
Dmetadata.h61 InternalMetadataWithArena() : ptr_(NULL) {} in InternalMetadataWithArena()
63 : ptr_ (arena) {} in InternalMetadataWithArena()
69 ptr_ = NULL; in ~InternalMetadataWithArena()
113 return ptr_; in raw_arena_ptr()
117 void* ptr_;
131 return reinterpret_cast<intptr_t>(ptr_) & kPtrTagMask; in PtrTag()
136 reinterpret_cast<intptr_t>(ptr_) & kPtrValueMask); in PtrValue()
150 ptr_ = container; in mutable_unknown_fields_slow()
151 ptr_ = reinterpret_cast<void*>( in mutable_unknown_fields_slow()
152 reinterpret_cast<intptr_t>(ptr_) | kTagContainer); in mutable_unknown_fields_slow()
/external/webrtc/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/google-breakpad/src/common/
Dscoped_ptr.h92 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function
98 delete ptr_; in ~scoped_ptr() local
105 if (p != ptr_) {
107 delete ptr_; variable
108 ptr_ = p;
115 assert(ptr_ != NULL);
116 return *ptr_;
119 assert(ptr_ != NULL);
120 return ptr_;
122 C* get() const { return ptr_; } in get()
[all …]
/external/libchrome/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/pcre/pcrecpp/include/
Dpcre_stringpiece.h63 const char* ptr_;
71 : ptr_(NULL), length_(0) { } in StringPiece()
73 : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { } in StringPiece()
75 : ptr_(reinterpret_cast<const char*>(str)), in StringPiece()
76 length_(static_cast<int>(strlen(ptr_))) { } in StringPiece()
78 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece()
80 : ptr_(offset), length_(len) { } in StringPiece()
88 const char* data() const { return ptr_; } in data()
92 void clear() { ptr_ = NULL; length_ = 0; } in clear()
93 void set(const char* buffer, int len) { ptr_ = buffer; length_ = len; } in set()
[all …]
/external/libcxx/test/support/
Dmin_allocator.h202 const void* ptr_; variable
205 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer()
207 min_pointer(min_pointer<T, ID> p) TEST_NOEXCEPT : ptr_(p.ptr_) {} in min_pointer()
209 explicit operator bool() const {return ptr_ != nullptr;}
211 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
219 void* ptr_; variable
222 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer()
229 min_pointer(min_pointer<T, ID> p) TEST_NOEXCEPT : ptr_(p.ptr_) {} in min_pointer()
231 explicit operator bool() const {return ptr_ != nullptr;}
233 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece.cc51 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece()
59 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece()
66 target->assign(ptr_, length_); in CopyToString()
70 target->append(ptr_, length_); in AppendToString()
75 ptr_ += x.length_; in Consume()
94 memcpy(buf, ptr_ + pos, ret); in copy()
107 const char *result = std::search(ptr_ + pos, ptr_ + length_, in find()
108 s.ptr_, s.ptr_ + s.length_); in find()
109 return result == ptr_ + length_ ? npos : result - ptr_; in find()
117 memchr(ptr_ + pos, c, length_ - pos)); in find()
[all …]
Dscoped_ptr.h68 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function
74 delete ptr_; in ~scoped_ptr() local
81 if (p != ptr_) {
83 delete ptr_; variable
84 ptr_ = p;
91 assert(ptr_ != NULL);
92 return *ptr_;
95 assert(ptr_ != NULL);
96 return ptr_;
98 C* get() const { return ptr_; } in get()
[all …]
Dshared_ptr.h111 shared_ptr() : ptr_(NULL), control_block_(NULL) {}
114 : ptr_(ptr),
125 : ptr_(NULL),
131 : ptr_(NULL),
140 if (ptr_ != ptr.ptr_) {
149 if (ptr_ != ptr.ptr_) {
166 if (ptr_ != NULL) {
168 delete ptr_;
188 if (p != ptr_) {
203 swap(ptr_, r.ptr_);
[all …]
Dstringpiece.h180 const char* ptr_;
210 StringPiece() : ptr_(NULL), length_(0) {} in StringPiece()
213 : ptr_(str), length_(0) { in StringPiece()
222 : ptr_(str.data()), length_(0) { in StringPiece()
229 : ptr_(str.data()), length_(0) { in StringPiece()
235 : ptr_(offset), length_(len) { in StringPiece()
253 const char* data() const { return ptr_; } in data()
259 ptr_ = NULL; in clear()
265 ptr_ = data; in set()
270 ptr_ = str; in set()
[all …]
/external/protobuf/python/google/protobuf/pyext/
Dscoped_pyobject_ptr.h45 explicit ScopedPyObjectPtr(PyObject* p = NULL) : ptr_(p) { } in ptr_() function
49 Py_XDECREF(ptr_); in ~ScopedPyObjectPtr()
58 Py_XDECREF(ptr_);
59 ptr_ = p;
60 return ptr_;
66 PyObject* p = ptr_; in release()
67 ptr_ = NULL; in release()
72 assert(ptr_ != NULL);
73 return ptr_;
76 PyObject* get() const { return ptr_; } in get()
[all …]
/external/v8/src/
Dbit-vector.h17 uintptr_t* ptr_; // valid if data_length_ > 1 member
30 : target->data_.ptr_[0]), in Iterator()
79 data_.ptr_ = zone->NewArray<uintptr_t>(data_length_); in BitVector()
90 data_.ptr_ = zone->NewArray<uintptr_t>(data_length_); in BitVector()
92 data_.ptr_[i] = other.data_.ptr_[i]; in BitVector()
121 data_.ptr_ = zone->NewArray<uintptr_t>(new_data_length); in Resize()
130 uintptr_t block = is_inline() ? data_.inline_ : data_.ptr_[i / kDataBits]; in Contains()
139 data_.ptr_[i / kDataBits] |= (kOne << (i % kDataBits)); in Add()
150 memset(data_.ptr_, -1, sizeof(uintptr_t) * data_length_); in AddAll()
159 data_.ptr_[i / kDataBits] &= ~(kOne << (i % kDataBits)); in Remove()
[all …]
/external/libchrome/base/task_scheduler/
Dtracked_ref.h76 : ptr_(other.ptr_), factory_(other.factory_) { in TrackedRef()
82 : ptr_(other.ptr_), factory_(other.factory_) { in TrackedRef()
100 T& operator*() const { return *ptr_; }
102 T* operator->() const { return ptr_; }
104 explicit operator bool() const { return ptr_ != nullptr; }
110 : ptr_(ptr), factory_(factory) { in TrackedRef()
114 T* ptr_; variable
123 : ptr_(ptr), self_ref_(WrapUnique(new TrackedRef<T>(ptr_, this))) { in TrackedRefFactory()
124 DCHECK(ptr_); in TrackedRefFactory()
144 return TrackedRef<T>(ptr_, this); in GetTrackedRef()
[all …]
/external/v8/tools/clang/rewrite_scoped_refptr/tests/
Dscoped_refptr.h13 scoped_refptr() : ptr_(0) {} in scoped_refptr()
14 scoped_refptr(T* p) : ptr_(p) {} in scoped_refptr()
15 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {} in scoped_refptr()
19 : ptr_(r.get()) {} in scoped_refptr()
23 T* get() const { return ptr_; } in get()
24 operator T*() const { return ptr_; }
25 T* operator->() const { return ptr_; }
28 ptr_ = p;
32 return *this = r.ptr_;
40 T* ptr_;
/external/libchrome/base/memory/
Dscoped_refptr.h174 constexpr scoped_refptr(T* p) : ptr_(p) { in scoped_refptr()
175 if (ptr_) in scoped_refptr()
176 AddRef(ptr_); in scoped_refptr()
181 scoped_refptr(const scoped_refptr& r) : scoped_refptr(r.ptr_) {} in scoped_refptr()
187 scoped_refptr(const scoped_refptr<U>& r) : scoped_refptr(r.ptr_) {} in scoped_refptr()
191 scoped_refptr(scoped_refptr&& r) noexcept : ptr_(r.ptr_) { r.ptr_ = nullptr; } in scoped_refptr()
197 scoped_refptr(scoped_refptr<U>&& r) noexcept : ptr_(r.ptr_) { in scoped_refptr()
198 r.ptr_ = nullptr; in scoped_refptr()
207 if (ptr_) in ~scoped_refptr()
208 Release(ptr_); in ~scoped_refptr()
[all …]
Dweak_ptr.h157 ptr_ = 0; in reset()
167 uintptr_t ptr_; variable
197 ptr.ref_, static_cast<Derived*>(reinterpret_cast<Base*>(ptr.ptr_))); in AsWeakPtrImpl()
231 T* t = reinterpret_cast<U*>(other.ptr_); in WeakPtr()
232 ptr_ = reinterpret_cast<uintptr_t>(t); in WeakPtr()
238 T* t = reinterpret_cast<U*>(other.ptr_); in WeakPtr()
239 ptr_ = reinterpret_cast<uintptr_t>(t); in WeakPtr()
243 return ref_.is_valid() ? reinterpret_cast<T*>(ptr_) : nullptr; in get()
292 uintptr_t ptr_; variable
311 reinterpret_cast<T*>(ptr_)); in GetWeakPtr()
[all …]
Dweak_ptr.cc68 WeakPtrBase::WeakPtrBase() : ptr_(0) {} in WeakPtrBase()
73 : ref_(ref), ptr_(ptr) { in WeakPtrBase()
74 DCHECK(ptr_); in WeakPtrBase()
77 WeakPtrFactoryBase::WeakPtrFactoryBase(uintptr_t ptr) : ptr_(ptr) { in WeakPtrFactoryBase()
78 DCHECK(ptr_); in WeakPtrFactoryBase()
82 ptr_ = 0; in ~WeakPtrFactoryBase()
/external/libchrome/mojo/public/cpp/bindings/
Dstruct_ptr.h55 : ptr_(new Struct(std::forward<Args>(args)...)) {} in StructPtr()
62 void reset() { ptr_.reset(); } in reset()
64 bool is_null() const { return !ptr_; } in is_null()
67 DCHECK(ptr_);
68 return *ptr_;
71 DCHECK(ptr_);
72 return ptr_.get();
74 Struct* get() const { return ptr_.get(); } in get()
76 void Swap(StructPtr* other) { std::swap(ptr_, other->ptr_); } in Swap()
81 StructPtr Clone() const { return is_null() ? StructPtr() : ptr_->Clone(); } in Clone()
[all …]
/external/webrtc/webrtc/audio/
Dscoped_voe_interface.h27 : ptr_(T::GetInterface(e)) { in ScopedVoEInterface()
28 RTC_DCHECK(ptr_); in ScopedVoEInterface()
31 if (ptr_) { in ~ScopedVoEInterface()
32 ptr_->Release(); in ~ScopedVoEInterface()
36 RTC_DCHECK(ptr_);
37 return ptr_;
40 T* ptr_;
/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h207 unique_ptr() : ptr_(nullptr) {}
208 explicit unique_ptr(T* p) : ptr_(p) {}
209 unique_ptr(unique_ptr&& u) : ptr_(nullptr) { reset(u.release()); }
210 unique_ptr(const unique_ptr& u) : ptr_(nullptr) {
230 const T& operator*() const { return *ptr_; }
231 T* operator->() const { return ptr_; }
232 T* get() const noexcept { return ptr_; }
233 explicit operator bool() const { return ptr_ != nullptr; }
237 T* value = ptr_;
238 ptr_ = nullptr;
[all …]
/external/v8/src/wasm/
Dfunction-body-decoder.h106 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE()
107 ptr_ += OpcodeLength(ptr_, end_); in NON_EXPORTED_BASE()
111 return this->ptr_ == that.ptr_; in NON_EXPORTED_BASE()
114 return this->ptr_ != that.ptr_; in NON_EXPORTED_BASE()
118 const byte* ptr_; in NON_EXPORTED_BASE()
120 iterator_base(const byte* ptr, const byte* end) : ptr_(ptr), end_(end) {} in NON_EXPORTED_BASE()
130 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE()
131 return static_cast<WasmOpcode>(*ptr_); in NON_EXPORTED_BASE()
146 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE()
147 return static_cast<uint32_t>(ptr_ - start_); in NON_EXPORTED_BASE()
/external/libchrome/base/strings/
Dstring_piece.h179 constexpr BasicStringPiece() : ptr_(NULL), length_(0) {} in BasicStringPiece()
185 : ptr_(str), length_(!str ? 0 : CharTraits<value_type>::length(str)) {} in BasicStringPiece()
187 : ptr_(str.data()), length_(str.size()) {} in BasicStringPiece()
189 : ptr_(offset), length_(len) {} in BasicStringPiece()
201 ptr_ = length_ > 0 ? &*begin : nullptr; in BasicStringPiece()
208 constexpr const value_type* data() const { return ptr_; } in data()
214 ptr_ = NULL; in clear()
218 ptr_ = data; in set()
222 ptr_ = str; in set()
228 return ptr_[i];
[all …]
/external/icu/icu4c/source/common/unicode/
Dstringpiece.h56 const char* ptr_;
64 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece()
76 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece()
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece()
111 const char* data() const { return ptr_; } in data()
135 void clear() { ptr_ = NULL; length_ = 0; } in clear()
143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } in set()
162 ptr_ += n; in remove_prefix()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dcontainer_test_util.cc14 CopyableType::CopyableType() : copied_(false), ptr_(this) { in CopyableType()
19 : copied_(true), ptr_(other.ptr()) { in CopyableType()
25 ptr_ = other.ptr(); in operator =()
33 MoveOnlyType::MoveOnlyType() : moved_(false), ptr_(this) { in MoveOnlyType()
38 : moved_(true), ptr_(other.ptr()) { in MoveOnlyType()
44 ptr_ = other.ptr(); in operator =()

1234