reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
33 BaseType base; 38 Range(BaseType b, SizeType s) : base(b), size(s) {} 40 void Clear(BaseType b = 0) { 46 BaseType GetRangeBase() const { return base; } 48 void SetRangeBase(BaseType b) { base = b; } 50 void Slide(BaseType slide) { base += slide; } 54 auto new_end = std::max<BaseType>(GetRangeEnd(), rhs.GetRangeEnd()); 55 base = std::min<BaseType>(base, rhs.base); 62 BaseType GetRangeEnd() const { return base + size; } 64 void SetRangeEnd(BaseType end) { 77 bool Contains(BaseType r) const { 81 bool ContainsEndInclusive(BaseType r) const { 92 const BaseType lhs_base = this->GetRangeBase(); 93 const BaseType rhs_base = rhs.GetRangeBase(); 94 const BaseType lhs_end = this->GetRangeEnd(); 95 const BaseType rhs_end = rhs.GetRangeEnd(); 102 const BaseType lhs_base = this->GetRangeBase(); 103 const BaseType rhs_base = rhs.GetRangeBase(); 104 const BaseType lhs_end = this->GetRangeEnd(); 105 const BaseType rhs_end = rhs.GetRangeEnd();tools/lldb/unittests/Utility/RangeTest.cpp
20 static_assert(std::is_same<lldb::addr_t, decltype(r.GetRangeBase())>::value, 22 static_assert(std::is_same<lldb::addr_t, decltype(r.GetRangeEnd())>::value,