Back to index

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

#include <xpcmaps.h>

Collaboration diagram for XPCWrappedNativeProtoMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

XPCWrappedNativeProtoAdd (XPCWrappedNativeProto *proto)
void Remove (XPCWrappedNativeProto *proto)
uint32 Count ()
uint32 Enumerate (JSDHashEnumerator f, void *arg)
 ~XPCWrappedNativeProtoMap ()

Static Public Member Functions

static XPCWrappedNativeProtoMapnewMap (int size)

Private Member Functions

 XPCWrappedNativeProtoMap ()
 XPCWrappedNativeProtoMap (int size)

Private Attributes

JSDHashTablemTable

Detailed Description

Definition at line 618 of file xpcmaps.h.


Constructor & Destructor Documentation

Definition at line 631 of file xpcmaps.cpp.

Here is the call graph for this function:

Definition at line 625 of file xpcmaps.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 623 of file xpcmaps.h.

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

Here is the caller graph for this function:

Definition at line 642 of file xpcmaps.h.

{return mTable->entryCount;}

Here is the caller graph for this function:

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

Definition at line 643 of file xpcmaps.h.

Here is the call graph for this function:

Definition at line 616 of file xpcmaps.cpp.

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

Definition at line 636 of file xpcmaps.h.

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 651 of file xpcmaps.h.


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