Article ID: 154482
Article Last Modified on 11/21/2006
template<class BASE_CLASS, class TYPE>
class CTypedPtrList : public BASE_CLASS
// Add a new element before head or after tail of the list
POSITION AddHead( TYPE newElement );
POSITION AddTail( TYPE newElement );
// Add another list of elements before head or after tail
void AddHead( CTypedPtrList<BASE_CLASS,TYPE> *pNewList );
void AddTail( CTypedPtrList<BASE_CLASS,TYPE> *pNewList );
// Modify an element at a given position
void SetAt( POSITION pos, TYPE newElement );
template<class BASE_CLASS, class TYPE>
class CTypedPtrArray : public BASE_CLASS
// Set the array element at the specified index
void SetAt( int nIndex, TYPE ptr );
// Potentially growing the array
void SetAtGrow( int nIndex, TYPE newElement );
int Add( TYPE newElement );
int Append( const CTypedPtrArray<BASE_CLASS, TYPE>& src );
void copy( const CTypedPtrArray<BASE_CLASS, TYPE>& src );
// Operations that move elements around
void InsertAt( int nIndex, TYPE newElement, int nCount=1 );
void InsertAt( int nStartIndex,
CTypedPtrArray<BASE_CLASS, TYPE>* pNewArray );
template<class BASE_CLASS, class KEY, class VALUE>
class CTypedPtrMap : public BASE_CLASS
// Add a new key (key,value) pair
void SetAt( KEY key, VALUE newValue );
// removing existing (key,?) pair
BOOL RemoveKey( KEY key );
For detailed information about these functions, please refer to the
corresponding documentation for the functions in BASE_CLASS (the template
parameter for each of the above template classes). For instance, if you
have CTypedPtrMap<CMap,MyKey,MyValue>, then refer to the documentation for
CMap for the functions listed above under CTypedPtrMap.Additional query words: kbVC420bug
Keywords: kbbug kbdocs kbfix kbnoupdate kbvc500fix KB154482