Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsArray.h File Reference
#include "nsIArray.h"
#include "nsCOMArray.h"
#include "nsCOMPtr.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsArray
protocol  NS_COM
 A string set that takes up minimal size when there are 0 or 1 strings in the set. More...

Defines

#define NS_ARRAY_CLASSNAME   "nsIArray implementation"
#define NS_ARRAY_CID

Functions

nsresult NS_COM NS_NewArray (nsIMutableArray **aResult)
nsresult NS_COM NS_NewArray (nsIMutableArray **aResult, const nsCOMArray_base &base)
const nsQueryArrayElementAt do_QueryElementAt (nsIArray *aArray, PRUint32 aIndex, nsresult *aErrorPtr=0)

Define Documentation

Value:
{ 0x35c66fd1, 0x95e9, 0x4e0a, \
  { 0x80, 0xc5, 0xc3, 0xbd, 0x2b, 0x37, 0x54, 0x81 } }

Definition at line 50 of file nsArray.h.

#define NS_ARRAY_CLASSNAME   "nsIArray implementation"

Definition at line 46 of file nsArray.h.


Function Documentation

const nsQueryArrayElementAt do_QueryElementAt ( nsIArray aArray,
PRUint32  aIndex,
nsresult aErrorPtr = 0 
) [inline]

Definition at line 112 of file nsArray.h.

  {
    return nsQueryArrayElementAt(aArray, aIndex, aErrorPtr);
  }

Definition at line 223 of file nsArray.cpp.

{
    nsArray* arr = new nsArray;
    if (!arr) return NS_ERROR_OUT_OF_MEMORY;

    *aResult = NS_STATIC_CAST(nsIMutableArray*,arr);
    NS_ADDREF(*aResult);
    
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 235 of file nsArray.cpp.

{
    nsArray* arr = new nsArray(aBaseArray);
    if (!arr) return NS_ERROR_OUT_OF_MEMORY;
    
    *aResult = NS_STATIC_CAST(nsIMutableArray*, arr);
    NS_ADDREF(*aResult);

    return NS_OK;
}

Here is the call graph for this function: