Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
XPCNativeWrapperMap Class Reference

#include <xpcmaps.h>

Collaboration diagram for XPCNativeWrapperMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

JSObjectAdd (JSObject *nw)
void Remove (JSObject *nw)
uint32 Count ()
uint32 Enumerate (JSDHashEnumerator f, void *arg)
 ~XPCNativeWrapperMap ()

Static Public Member Functions

static XPCNativeWrapperMapnewMap (int size)

Private Member Functions

 XPCNativeWrapperMap ()
 XPCNativeWrapperMap (int size)

Private Attributes

JSDHashTablemTable

Detailed Description

Definition at line 654 of file xpcmaps.h.


Constructor & Destructor Documentation

Definition at line 657 of file xpcmaps.cpp.

Here is the call graph for this function:

Definition at line 651 of file xpcmaps.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 659 of file xpcmaps.h.

    {
        NS_PRECONDITION(nw,"bad param");
        JSDHashEntryStub* entry = (JSDHashEntryStub*)
            JS_DHashTableOperate(mTable, nw, JS_DHASH_ADD);
        if(!entry)
            return nsnull;
        if(entry->key)
            return (JSObject*) entry->key;
        entry->key = nw;
        return nw;
    }

Here is the caller graph for this function:

Definition at line 678 of file xpcmaps.h.

{return mTable->entryCount;}

Here is the caller graph for this function:

uint32 XPCNativeWrapperMap::Enumerate ( JSDHashEnumerator  f,
void arg 
) [inline]

Definition at line 679 of file xpcmaps.h.

Here is the call graph for this function:

Definition at line 642 of file xpcmaps.cpp.

{
    XPCNativeWrapperMap* map = new XPCNativeWrapperMap(size);
    if(map && map->mTable)
        return map;
    delete map;
    return nsnull;
}

Definition at line 672 of file xpcmaps.h.

    {
        NS_PRECONDITION(nw,"bad param");
        JS_DHashTableOperate(mTable, nw, JS_DHASH_REMOVE);
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 687 of file xpcmaps.h.


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