53 return ( *a )->Icmp( **
b );
76 for( i = 0; i <
num; i++ ) {
77 pointerList[
i ] = &( *this )[
i ];
84 for( i = 0; i < other.
Num(); i++ ) {
85 other[
i ] = *pointerList[
i ];
105 if ( startIndex < 0 ) {
108 if ( endIndex >= num ) {
111 if ( startIndex >= endIndex ) {
118 s = endIndex - startIndex + 1;
121 for( i = 0; i <
s; i++ ) {
122 other[
i ] = ( *this )[ startIndex +
i ];
123 pointerList[
i ] = &other[
i ];
128 for( i = 0; i <
s; i++ ) {
129 (*this)[ startIndex +
i ] = *pointerList[
i ];
144 for( i = 0; i <
Num(); i++ ) {
145 s += ( *this )[
i ].Size();
166 template<
class idStrPtr>
168 return ( *a )->IcmpPath( **b );
189 for( i = 0; i < list.
Num(); i++ ) {
190 pointerList[
i ] = &list[
i ];
193 pointerList.
Sort( idListSortComparePaths<idStrPtr> );
197 for( i = 0; i < other.
Num(); i++ ) {
198 other[
i ] = *pointerList[
i ];
void SortSubSection(int startIndex, int endIndex, cmp_t *compare=(cmp_t *)&idListSortCompare< idStr >)
void SetNum(int newnum, bool resize=true)
void Swap(idList< type > &other)
int GetGranularity(void) const
void SetGranularity(int newgranularity)
idList< idStr * > idStrPtrList
void Sort(cmp_t *compare=(cmp_t *)&idListSortCompare< idStr >)
ID_INLINE int idListSortCompare< idStrPtr >(const idStrPtr *a, const idStrPtr *b)
GLubyte GLubyte GLubyte a
idList< idStr > idStrList
ID_INLINE void idStrListSortPaths(idStrList &list)
ID_INLINE int idListSortComparePaths(const idStrPtr *a, const idStrPtr *b)