Lines Matching refs:base
70 TransformArrayRef(const ArrayRef<OtherBT>& base, Function fn) in TransformArrayRef() argument
71 : data_(base, fn) { } in TransformArrayRef()
76 : TransformArrayRef(other.base(), other.GetFunction()) { } in TransformArrayRef()
85 return *this = TransformArrayRef(other.base(), other.GetFunction());
92 iterator begin() { return MakeIterator(base().begin()); } in begin()
93 const_iterator begin() const { return MakeIterator(base().cbegin()); } in begin()
94 const_iterator cbegin() const { return MakeIterator(base().cbegin()); } in cbegin()
95 iterator end() { return MakeIterator(base().end()); } in end()
96 const_iterator end() const { MakeIterator(base().cend()); } in end()
97 const_iterator cend() const { return MakeIterator(base().cend()); } in cend()
106 size_type size() const { return base().size(); } in size()
107 bool empty() const { return base().empty(); } in empty()
111 reference operator[](size_type n) { return GetFunction()(base()[n]); }
112 const_reference operator[](size_type n) const { return GetFunction()(base()[n]); }
114 reference front() { return GetFunction()(base().front()); } in front()
115 const_reference front() const { return GetFunction()(base().front()); } in front()
117 reference back() { return GetFunction()(base().back()); } in back()
118 const_reference back() const { return GetFunction()(base().back()); } in back()
121 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
124 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
127 return TransformArrayRef(base().subarray(pos, length), GetFunction()); in SubArray()
131 ArrayRef<BaseType> base() { in base() function
134 ArrayRef<const BaseType> base() const { in base() function
142 Data(ArrayRef<BaseType> base, Function fn) : Function(fn), base_(base) { } in Data()
152 auto MakeIterator(BaseIterator base) const { in MakeIterator() argument
153 return MakeTransformIterator(base, GetFunction()); in MakeIterator()