Back to index

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

#include <xptiprivate.h>

Collaboration diagram for xptiTypelibGuts:
Collaboration graph
[legend]

List of all members.

Public Member Functions

XPTHeaderGetHeader ()
PRUint16 GetEntryCount () const
void SetEntryAt (PRUint16 i, xptiInterfaceEntry *ptr)
xptiInterfaceEntryGetEntryAt (PRUint16 i) const

Static Public Member Functions

static xptiTypelibGutsNewGuts (XPTHeader *aHeader, xptiWorkingSet *aWorkingSet)

Private Member Functions

 xptiTypelibGuts ()
 xptiTypelibGuts (XPTHeader *aHeader)
 ~xptiTypelibGuts ()
voidoperator new (size_t, void *p) CPP_THROW_NEW

Private Attributes

XPTHeadermHeader
xptiInterfaceEntrymEntryArray [1]

Detailed Description

Definition at line 149 of file xptiprivate.h.


Constructor & Destructor Documentation

Here is the caller graph for this function:

xptiTypelibGuts::xptiTypelibGuts ( XPTHeader aHeader) [private]

Definition at line 59 of file xptiTypelibGuts.cpp.

     :  mHeader(aHeader) 
{
    // empty
}
xptiTypelibGuts::~xptiTypelibGuts ( ) [inline, private]

Definition at line 175 of file xptiprivate.h.

{}

Member Function Documentation

Definition at line 165 of file xptiprivate.h.

    {
        NS_ASSERTION(mHeader,"bad state!");
        NS_ASSERTION(i < GetEntryCount(),"bad param!");
        return mEntryArray[i];
    }        

Here is the call graph for this function:

Definition at line 156 of file xptiprivate.h.

Here is the caller graph for this function:

Definition at line 155 of file xptiprivate.h.

{return mHeader;}
xptiTypelibGuts * xptiTypelibGuts::NewGuts ( XPTHeader aHeader,
xptiWorkingSet aWorkingSet 
) [static]

Definition at line 46 of file xptiTypelibGuts.cpp.

{
    NS_ASSERTION(aHeader, "bad param");
    void* place = XPT_MALLOC(aWorkingSet->GetStructArena(),
                             sizeof(xptiTypelibGuts) + 
                             (sizeof(xptiInterfaceEntry*) *
                              (aHeader->num_interfaces - 1)));
    if(!place)
        return nsnull;
    return new(place) xptiTypelibGuts(aHeader);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void* xptiTypelibGuts::operator new ( size_t  ,
void p 
) [inline, private]

Definition at line 176 of file xptiprivate.h.

{return p;}

Definition at line 158 of file xptiprivate.h.

    {
        NS_ASSERTION(mHeader,"bad state!");
        NS_ASSERTION(i < GetEntryCount(),"bad param!");
        mEntryArray[i] = ptr;
    }        

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 180 of file xptiprivate.h.

Definition at line 179 of file xptiprivate.h.


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