Lines Matching refs:rhs
36 StringPool::Ref::Ref(const StringPool::Ref& rhs) : entry_(rhs.entry_) { in Ref() argument
54 StringPool::Ref& StringPool::Ref::operator=(const StringPool::Ref& rhs) { in operator =() argument
55 if (rhs.entry_ != nullptr) { in operator =()
56 rhs.entry_->ref_++; in operator =()
62 entry_ = rhs.entry_; in operator =()
66 bool StringPool::Ref::operator==(const Ref& rhs) const { in operator ==()
67 return entry_->value == rhs.entry_->value; in operator ==()
70 bool StringPool::Ref::operator!=(const Ref& rhs) const { in operator !=()
71 return entry_->value != rhs.entry_->value; in operator !=()
94 StringPool::StyleRef::StyleRef(const StringPool::StyleRef& rhs) : entry_(rhs.entry_) { in StyleRef() argument
112 StringPool::StyleRef& StringPool::StyleRef::operator=(const StringPool::StyleRef& rhs) { in operator =() argument
113 if (rhs.entry_ != nullptr) { in operator =()
114 rhs.entry_->ref_++; in operator =()
120 entry_ = rhs.entry_; in operator =()
124 bool StringPool::StyleRef::operator==(const StyleRef& rhs) const { 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 ==()
144 bool StringPool::StyleRef::operator!=(const StyleRef& rhs) const { in operator !=()
145 return !operator==(rhs); in operator !=()