Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Private Member Functions
nsCOMArray< T > Class Template Reference

#include <nsCOMArray.h>

Inherits nsCOMArray_base.

Collaboration diagram for nsCOMArray< T >:
Collaboration graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 nsCOMArray ()
 nsCOMArray (PRInt32 aCount)
 nsCOMArray (const nsCOMArray< T > &aOther)
 ~nsCOMArray ()
TObjectAt (PRInt32 aIndex) const
TSafeObjectAt (PRInt32 aIndex) const
Toperator[] (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)

Private Member Functions

nsCOMArray< T > & operator= (const nsCOMArray< T > &other)

Detailed Description

template<class T>
class nsCOMArray< T >

Definition at line 146 of file nsCOMArray.h.


Member Typedef Documentation

template<class T>
typedef PRBool(* nsCOMArray< T >::PR_CALLBACK)(T *aElement, void *aData)

Definition at line 224 of file nsCOMArray.h.

template<class T>
typedef int(* nsCOMArray< T >::PR_CALLBACK)(T *aElement1, T *aElement2, void *aData)

Definition at line 238 of file nsCOMArray.h.


Constructor & Destructor Documentation

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

Definition at line 149 of file nsCOMArray.h.

{}
template<class T>
nsCOMArray< T >::nsCOMArray ( PRInt32  aCount) [inline]

Definition at line 150 of file nsCOMArray.h.

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

Definition at line 154 of file nsCOMArray.h.

: nsCOMArray_base(aOther) { }
template<class T>
nsCOMArray< T >::~nsCOMArray ( ) [inline]

Definition at line 156 of file nsCOMArray.h.

{}

Member Function Documentation

template<class T>
PRBool nsCOMArray< T >::AppendObject ( T aObject) [inline]

Definition at line 245 of file nsCOMArray.h.

                                    {
        return nsCOMArray_base::AppendObject(NS_STATIC_CAST(nsISupports*, aObject));
    }
template<class T>
PRBool nsCOMArray< T >::AppendObjects ( const nsCOMArray< T > &  aObjects) [inline]

Definition at line 250 of file nsCOMArray.h.

                                                        {
        return nsCOMArray_base::AppendObjects(aObjects);
    }

Here is the caller graph for this function:

template<class T>
void nsCOMArray< T >::Clear ( void  ) [inline]

Definition at line 216 of file nsCOMArray.h.

Here is the caller graph for this function:

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

Definition at line 211 of file nsCOMArray.h.

                          {
        return nsCOMArray_base::Count();
    }
template<class T>
PRBool nsCOMArray< T >::EnumerateBackwards ( nsCOMArrayEnumFunc  aFunc,
void aData 
) [inline]

Definition at line 232 of file nsCOMArray.h.

                                                                     {
        return nsCOMArray_base::EnumerateBackwards(nsVoidArrayEnumFunc(aFunc),
                                                  aData);
    }

Here is the caller graph for this function:

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

Definition at line 227 of file nsCOMArray.h.

                                                                    {
        return nsCOMArray_base::EnumerateForwards(nsVoidArrayEnumFunc(aFunc),
                                                  aData);
    }

Here is the caller graph for this function:

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

Definition at line 176 of file nsCOMArray.h.

                                      {
        return nsCOMArray_base::IndexOf(NS_STATIC_CAST(nsISupports*, aObject));
    }

Here is the caller graph for this function:

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

Definition at line 185 of file nsCOMArray.h.

                                            {
        return nsCOMArray_base::IndexOfObject(NS_STATIC_CAST(nsISupports*, aObject));
    }

Here is the caller graph for this function:

template<class T>
PRBool nsCOMArray< T >::InsertObjectAt ( T aObject,
PRInt32  aIndex 
) [inline]

Definition at line 191 of file nsCOMArray.h.

                                                      {
        return nsCOMArray_base::InsertObjectAt(NS_STATIC_CAST(nsISupports*, aObject), aIndex);
    }

Here is the caller graph for this function:

template<class T>
PRBool nsCOMArray< T >::InsertObjectsAt ( const nsCOMArray< T > &  aObjects,
PRInt32  aIndex 
) [inline]

Definition at line 197 of file nsCOMArray.h.

                                                                          {
        return nsCOMArray_base::InsertObjectsAt(aObjects, aIndex);
    }

Here is the caller graph for this function:

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

Definition at line 159 of file nsCOMArray.h.

                                      {
        return NS_STATIC_CAST(T*,nsCOMArray_base::ObjectAt(aIndex));
    }

Here is the caller graph for this function:

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

Definition at line 169 of file nsCOMArray.h.

                                        {
        return ObjectAt(aIndex);
    }
template<class T>
PRBool nsCOMArray< T >::RemoveObject ( T aObject) [inline]

Definition at line 257 of file nsCOMArray.h.

                                    {
        return nsCOMArray_base::RemoveObject(NS_STATIC_CAST(nsISupports*, aObject));
    }

Here is the caller graph for this function:

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

Definition at line 263 of file nsCOMArray.h.

                                          {
        return nsCOMArray_base::RemoveObjectAt(aIndex);
    }

Here is the caller graph for this function:

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

Definition at line 203 of file nsCOMArray.h.

                                                       {
        return nsCOMArray_base::ReplaceObjectAt(NS_STATIC_CAST(nsISupports*, aObject), aIndex);
    }

Here is the caller graph for this function:

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

Definition at line 164 of file nsCOMArray.h.

                                          {
        return NS_STATIC_CAST(T*,nsCOMArray_base::SafeObjectAt(aIndex));
    }

Here is the caller graph for this function:

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

Definition at line 240 of file nsCOMArray.h.

                                                           {
        nsCOMArray_base::Sort(nsVoidArrayComparatorFunc(aFunc), aData);
    }

Here is the caller graph for this function:


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