Lines Matching refs:Element

23 template<typename Element>
27 Array(const Array<Element>& other);
33 inline Element* Elements() const { return fElements; }
35 inline bool Add(const Element& element);
37 inline bool Insert(const Element& element, int32 index);
44 inline Element& ElementAt(int32 index);
45 inline const Element& ElementAt(int32 index) const;
47 inline Element& operator[](int32 index);
48 inline const Element& operator[](int32 index) const;
50 Array<Element>& operator=(const Array<Element>& other);
58 Element* fElements;
64 template<typename Element>
65 Array<Element>::Array()
74 template<typename Element>
75 Array<Element>::Array(const Array<Element>& other)
85 template<typename Element>
86 Array<Element>::~Array()
92 template<typename Element>
94 Array<Element>::Add(const Element& element)
105 template<typename Element>
107 Array<Element>::AddUninitialized(int32 elementCount)
113 template<typename Element>
115 Array<Element>::Insert(const Element& element, int32 index)
129 template<typename Element>
131 Array<Element>::InsertUninitialized(int32 index, int32 count)
146 template<typename Element>
148 Array<Element>::Remove(int32 index, int32 count)
164 sizeof(Element) * (fSize - index - count));
174 template<typename Element>
176 Array<Element>::Clear()
189 template<typename Element>
191 Array<Element>::MakeEmpty()
197 template<typename Element>
198 Element&
199 Array<Element>::ElementAt(int32 index)
205 template<typename Element>
206 const Element&
207 Array<Element>::ElementAt(int32 index) const
213 template<typename Element>
214 Element&
215 Array<Element>::operator[](int32 index)
221 template<typename Element>
222 const Element&
223 Array<Element>::operator[](int32 index) const
229 template<typename Element>
230 Array<Element>&
231 Array<Element>::operator=(const Array<Element>& other)
237 memcpy(fElements, other.fElements, fSize * sizeof(Element));
244 template<typename Element>
246 Array<Element>::_Resize(int32 index, int32 delta)
260 (fSize - index) * sizeof(Element));
264 (fSize - index + delta) * sizeof(Element));
272 Element* elements = (Element*)malloc(newCapacity * sizeof(Element));
277 memcpy(elements, fElements, index * sizeof(Element));
282 (fSize - index) * sizeof(Element));
286 (fSize - index + delta) * sizeof(Element));