Public Types | Public Member Functions

nsCOMArray< T > Class Template Reference

#include <nsCOMArray.h>

Inheritance diagram for nsCOMArray< T >:
Collaboration diagram for nsCOMArray< T >:

List of all members.

Public Types

typedef PRBool(* nsCOMArrayEnumFunc )(T *aElement, void *aData)
typedef int(* nsCOMArrayComparatorFunc )(T *aElement1, T *aElement2, void *aData)

Public Member Functions

 nsCOMArray ()
 nsCOMArray (PRInt32 aCount)
 nsCOMArray (const nsCOMArray< T > &aOther)
 ~nsCOMArray ()
T * ObjectAt (PRInt32 aIndex) const
T * SafeObjectAt (PRInt32 aIndex) const
T * operator[] (PRInt32 aIndex) const
PRInt32 IndexOf (T *aObject) const
PRInt32 IndexOfObject (T *aObject) const
PRBool InsertObjectAt (T *aObject, PRInt32 aIndex)
PRBool InsertObjectsAt (const nsCOMArray< T > &aObjects, PRInt32 aIndex)
PRBool ReplaceObjectAt (T *aObject, PRInt32 aIndex)
PRInt32 Count () const
void Clear ()
PRBool EnumerateForwards (nsCOMArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsCOMArrayEnumFunc aFunc, void *aData)
void Sort (nsCOMArrayComparatorFunc aFunc, void *aData)
PRBool AppendObject (T *aObject)
PRBool AppendObjects (const nsCOMArray< T > &aObjects)
PRBool RemoveObject (T *aObject)
PRBool RemoveObjectAt (PRInt32 aIndex)

template<class T>
class nsCOMArray< T >


Member Typedef Documentation

template<class T>
typedef int(* nsCOMArray< T >::nsCOMArrayComparatorFunc)(T *aElement1, T *aElement2, void *aData)
template<class T>
typedef PRBool(* nsCOMArray< T >::nsCOMArrayEnumFunc)(T *aElement, void *aData)

Constructor & Destructor Documentation

template<class T>
nsCOMArray< T >::nsCOMArray (  )  [inline]
template<class T>
nsCOMArray< T >::nsCOMArray ( PRInt32  aCount  )  [inline]
template<class T>
nsCOMArray< T >::nsCOMArray ( const nsCOMArray< T > &  aOther  )  [inline]
template<class T>
nsCOMArray< T >::~nsCOMArray (  )  [inline]

Member Function Documentation

template<class T>
PRBool nsCOMArray< T >::AppendObject ( T *  aObject  )  [inline]
template<class T>
PRBool nsCOMArray< T >::AppendObjects ( const nsCOMArray< T > &  aObjects  )  [inline]
template<class T>
void nsCOMArray< T >::Clear (  )  [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRInt32 nsCOMArray< T >::Count (  )  const [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRBool nsCOMArray< T >::EnumerateBackwards ( nsCOMArrayEnumFunc  aFunc,
void *  aData 
) [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRBool nsCOMArray< T >::EnumerateForwards ( nsCOMArrayEnumFunc  aFunc,
void *  aData 
) [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRInt32 nsCOMArray< T >::IndexOf ( T *  aObject  )  const [inline]
template<class T>
PRInt32 nsCOMArray< T >::IndexOfObject ( T *  aObject  )  const [inline]
template<class T>
PRBool nsCOMArray< T >::InsertObjectAt ( T *  aObject,
PRInt32  aIndex 
) [inline]
template<class T>
PRBool nsCOMArray< T >::InsertObjectsAt ( const nsCOMArray< T > &  aObjects,
PRInt32  aIndex 
) [inline]
template<class T>
T* nsCOMArray< T >::ObjectAt ( PRInt32  aIndex  )  const [inline]

Reimplemented from nsCOMArray_base.

template<class T>
T* nsCOMArray< T >::operator[] ( PRInt32  aIndex  )  const [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRBool nsCOMArray< T >::RemoveObject ( T *  aObject  )  [inline]
template<class T>
PRBool nsCOMArray< T >::RemoveObjectAt ( PRInt32  aIndex  )  [inline]

Reimplemented from nsCOMArray_base.

template<class T>
PRBool nsCOMArray< T >::ReplaceObjectAt ( T *  aObject,
PRInt32  aIndex 
) [inline]
template<class T>
T* nsCOMArray< T >::SafeObjectAt ( PRInt32  aIndex  )  const [inline]

Reimplemented from nsCOMArray_base.

template<class T>
void nsCOMArray< T >::Sort ( nsCOMArrayComparatorFunc  aFunc,
void *  aData 
) [inline]

Reimplemented from nsCOMArray_base.


The documentation for this class was generated from the following file: