Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsIMutableArray Interface Reference

import "nsIArray.idl";

Inheritance diagram for nsIMutableArray:

nsIArray nsISupports

List of all members.


Detailed Description

nsIMutableArray A separate set of methods that will act on the array. Consumers of nsIArray should not QueryInterface to nsIMutableArray unless they own the array.

As above, it is legal to add null elements to the array. Note also that null elements can be created as a side effect of insertElementAt(). Conversely, if insertElementAt() is never used, and null elements are never explicitly added to the array, then it is guaranteed that queryElementAt() will never return a null value.

Any of these methods may throw NS_ERROR_OUT_OF_MEMORY when the array must grow to complete the call, but the allocation fails.

UNDER_REVIEW

Definition at line 148 of file nsIArray.idl.


Public Member Functions

void appendElement (in nsISupports element, in boolean weak)
void clear ()
nsISimpleEnumerator enumerate ()
unsigned long indexOf (in unsigned long startIndex, in nsISupports element)
void insertElementAt (in nsISupports element, in unsigned long index, in boolean weak)
void queryElementAt (in unsigned long index, in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
void removeElementAt (in unsigned long index)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute unsigned long length

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

Generated by  Doxygen 1.6.0   Back to index