Lines Matching refs:entry_
34 StringPool::Ref::Ref() : entry_(nullptr) {} in Ref()
36 StringPool::Ref::Ref(const StringPool::Ref& rhs) : entry_(rhs.entry_) { in Ref()
37 if (entry_ != nullptr) { in Ref()
38 entry_->ref_++; in Ref()
42 StringPool::Ref::Ref(StringPool::Entry* entry) : entry_(entry) { in Ref()
43 if (entry_ != nullptr) { in Ref()
44 entry_->ref_++; in Ref()
49 if (entry_ != nullptr) { in ~Ref()
50 entry_->ref_--; in ~Ref()
55 if (rhs.entry_ != nullptr) { in operator =()
56 rhs.entry_->ref_++; in operator =()
59 if (entry_ != nullptr) { in operator =()
60 entry_->ref_--; in operator =()
62 entry_ = rhs.entry_; in operator =()
67 return entry_->value == rhs.entry_->value; in operator ==()
71 return entry_->value != rhs.entry_->value; in operator !=()
75 return &entry_->value; in operator ->()
79 return entry_->value; in operator *()
84 return entry_->pool_->styles_.size() + entry_->index_; in index()
88 return entry_->context; in GetContext()
91 StringPool::StyleRef::StyleRef() : entry_(nullptr) {} in StyleRef()
94 : entry_(rhs.entry_) { in StyleRef()
95 if (entry_ != nullptr) { in StyleRef()
96 entry_->ref_++; in StyleRef()
100 StringPool::StyleRef::StyleRef(StringPool::StyleEntry* entry) : entry_(entry) { in StyleRef()
101 if (entry_ != nullptr) { in StyleRef()
102 entry_->ref_++; in StyleRef()
107 if (entry_ != nullptr) { in ~StyleRef()
108 entry_->ref_--; in ~StyleRef()
113 if (rhs.entry_ != nullptr) { in operator =()
114 rhs.entry_->ref_++; in operator =()
117 if (entry_ != nullptr) { in operator =()
118 entry_->ref_--; in operator =()
120 entry_ = rhs.entry_; in operator =()
125 if (entry_->value != rhs.entry_->value) { in operator ==()
129 if (entry_->spans.size() != rhs.entry_->spans.size()) { in operator ==()
133 auto rhs_iter = rhs.entry_->spans.begin(); in operator ==()
134 for (const Span& span : entry_->spans) { in operator ==()
149 return entry_; in operator ->()
153 return *entry_; in operator *()
157 return entry_->index_; in index()
161 return entry_->context; in GetContext()
195 if (ref.entry_->pool_ == this) { in MakeRef()
198 return MakeRef(ref.entry_->value, ref.entry_->context); in MakeRef()
222 entry->value = ref.entry_->value; in MakeRef()
223 entry->context = ref.entry_->context; in MakeRef()
226 for (const Span& span : ref.entry_->spans) { in MakeRef()