Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
ClassInfoData Class Reference
Collaboration diagram for ClassInfoData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClassInfoData (nsIClassInfo *aClassInfo, const char *aName)
 ~ClassInfoData ()
PRUint32 GetFlags ()
PRBool IsDOMClass ()
PRBool IsContentNode ()
const char * GetName ()

Private Attributes

nsIClassInfomClassInfo
PRUint32 mFlags
char * mName
PRPackedBool mDidGetFlags
PRPackedBool mMustFreeName

Detailed Description

Definition at line 141 of file nsScriptSecurityManager.cpp.


Constructor & Destructor Documentation

ClassInfoData::ClassInfoData ( nsIClassInfo aClassInfo,
const char *  aName 
) [inline]

Definition at line 144 of file nsScriptSecurityManager.cpp.

Definition at line 152 of file nsScriptSecurityManager.cpp.

    {
        if (mMustFreeName)
            nsMemory::Free(mName);
    }

Member Function Documentation

Definition at line 158 of file nsScriptSecurityManager.cpp.

    {
        if (!mDidGetFlags) {
            if (mClassInfo) {
                nsresult rv = mClassInfo->GetFlags(&mFlags);
                if (NS_FAILED(rv)) {
                    mFlags = 0;
                }
            } else {
                mFlags = 0;
            }

            mDidGetFlags = PR_TRUE;
        }

        return mFlags;
    }

Here is the caller graph for this function:

const char* ClassInfoData::GetName ( ) [inline]

Definition at line 186 of file nsScriptSecurityManager.cpp.

    {
        if (!mName) {
            if (mClassInfo) {
                mClassInfo->GetClassDescription(&mName);
            }

            if (mName) {
                mMustFreeName = PR_TRUE;
            } else {
                mName = NS_CONST_CAST(char *, "UnnamedClass");
            }
        }

        return mName;
    }

Here is the caller graph for this function:

Definition at line 181 of file nsScriptSecurityManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 176 of file nsScriptSecurityManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 204 of file nsScriptSecurityManager.cpp.

Definition at line 207 of file nsScriptSecurityManager.cpp.

Definition at line 205 of file nsScriptSecurityManager.cpp.

Definition at line 208 of file nsScriptSecurityManager.cpp.

char* ClassInfoData::mName [private]

Definition at line 206 of file nsScriptSecurityManager.cpp.


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