Lines Matching refs:ITYPE
189 template <class T, typename ITYPE, bool MT>
200 typedef typename RTCIfPtr<ITYPE, T&, T>::result GET_RTYPE;
201 typedef typename RTCIfPtr<ITYPE, const T&, T>::result GET_CRTYPE;
231 RTCListBase(const RTCListBase<T, ITYPE, MT>& other)
240 RTCListHelper<T, ITYPE>::copyTo(m_pArray, other.m_pArray, 0, cElementsOther);
251 RTCListHelper<T, ITYPE>::eraseRange(m_pArray, 0, m_cElements);
328 RTCListBase<T, ITYPE, MT> &insert(size_t i, const T &val)
337 memmove(&m_pArray[i + 1], &m_pArray[i], (m_cElements - i) * sizeof(ITYPE));
338 RTCListHelper<T, ITYPE>::set(m_pArray, i, val);
358 RTCListBase<T, ITYPE, MT> &insert(size_t i, const RTCListBase<T, ITYPE, MT> &other)
373 memmove(&m_pArray[i + cElementsOther], &m_pArray[i], (m_cElements - i) * sizeof(ITYPE));
375 RTCListHelper<T, ITYPE>::copyTo(&m_pArray[i], other.m_pArray, 0, cElementsOther);
391 RTCListBase<T, ITYPE, MT> &prepend(const T &val)
403 RTCListBase<T, ITYPE, MT> &prepend(const RTCListBase<T, ITYPE, MT> &other)
415 RTCListBase<T, ITYPE, MT> &append(const T &val)
420 RTCListHelper<T, ITYPE>::set(m_pArray, m_cElements, val);
435 RTCListBase<T, ITYPE, MT> &append(const RTCListBase<T, ITYPE, MT> &other)
457 RTCListBase<T, ITYPE, MT> &operator=(const RTCListBase<T, ITYPE, MT>& other)
467 RTCListHelper<T, ITYPE>::eraseRange(m_pArray, 0, m_cElements);
475 RTCListHelper<T, ITYPE>::copyTo(m_pArray, other.m_pArray, 0, other.m_cElements);
490 RTCListBase<T, ITYPE, MT> &replace(size_t i, const T &val)
496 RTCListHelper<T, ITYPE>::erase(m_pArray, i);
497 RTCListHelper<T, ITYPE>::set(m_pArray, i, val);
518 GET_CRTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, 0);
535 GET_RTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, 0);
552 GET_CRTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, m_cElements - 1);
569 GET_RTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, m_cElements - 1);
587 GET_CRTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, i);
605 GET_RTYPE res = RTCListHelper<T, ITYPE>::at(m_pArray, i);
623 T &res = RTCListHelper<T, ITYPE>::at(m_pArray, i);
642 T res = RTCListHelper<T, ITYPE>::at(m_pArray, i);
662 T res = RTCListHelper<T, ITYPE>::at(m_pArray, i);
676 bool fRc = RTCListHelper<T, ITYPE>::find(m_pArray, val, m_cElements) < m_cElements;
735 RTCListHelper<T, ITYPE>::eraseRange(m_pArray, iStart, cElements);
737 memmove(&m_pArray[iStart], &m_pArray[iEnd], (m_cElements - iEnd) * sizeof(ITYPE));
752 RTCListHelper<T, ITYPE>::eraseRange(m_pArray, 0, m_cElements);
772 ITYPE *raw() const
775 ITYPE *pRet = m_pArray;
780 RTCListBase<T, ITYPE, MT> &operator<<(const T &val)
811 RTCListHelper<T, ITYPE>::eraseRange(m_pArray, cElementsNew, m_cElements - cElementsNew);
831 void *pvNew = RTMemRealloc(m_pArray, sizeof(ITYPE) * cElementsNew);
839 m_pArray = static_cast<ITYPE*>(pvNew);
863 void *pvNew = RTMemRealloc(m_pArray, sizeof(ITYPE) * cElementsNew);
867 m_pArray = static_cast<ITYPE*>(pvNew);
888 RTCListHelper<T, ITYPE>::erase(m_pArray, i);
890 memmove(&m_pArray[i], &m_pArray[i + 1], (m_cElements - i - 1) * sizeof(ITYPE));
896 ITYPE *m_pArray;
905 template <class T, typename ITYPE, bool MT>
906 const size_t RTCListBase<T, ITYPE, MT>::kDefaultCapacity = 10;
913 template <class T, typename ITYPE = typename RTCIf<(sizeof(T) > sizeof(void*)), T*, T>::result>
914 class RTCList : public RTCListBase<T, ITYPE, false>
917 typedef RTCListBase<T, ITYPE, false> BASE;