Back to index

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

#include <nsAbUtils.h>

List of all members.

Public Member Functions

 CharPtrArrayGuard (PRBool freeElements=PR_TRUE)
 ~CharPtrArrayGuard ()
char * operator[] (int i)
PRUint32GetSizeAddr (void)
PRUint32 GetSize (void)
char *** GetArrayAddr (void)
const char ** GetArray (void)

Private Member Functions

void Free ()

Private Attributes

PRBool mFreeElements
char ** mArray
PRUint32 mSize

Detailed Description

Definition at line 50 of file nsAbUtils.h.


Constructor & Destructor Documentation

CharPtrArrayGuard::CharPtrArrayGuard ( PRBool  freeElements = PR_TRUE) [inline]

Definition at line 53 of file nsAbUtils.h.

                                                      :
        mFreeElements (freeElements),
        mArray (0),
        mSize (0)
    {
    }

Definition at line 60 of file nsAbUtils.h.

    {
        Free ();
    }

Here is the call graph for this function:


Member Function Documentation

void CharPtrArrayGuard::Free ( ) [inline, private]

Definition at line 97 of file nsAbUtils.h.

Here is the caller graph for this function:

const char** CharPtrArrayGuard::GetArray ( void  ) [inline]

Definition at line 85 of file nsAbUtils.h.

    {
        return (const char** ) mArray;
    }

Here is the caller graph for this function:

char*** CharPtrArrayGuard::GetArrayAddr ( void  ) [inline]

Definition at line 80 of file nsAbUtils.h.

    {
        return &mArray;
    }

Here is the caller graph for this function:

Definition at line 75 of file nsAbUtils.h.

    {
        return mSize;
    }

Here is the caller graph for this function:

Definition at line 70 of file nsAbUtils.h.

    {
        return &mSize;
    }

Here is the caller graph for this function:

char* CharPtrArrayGuard::operator[] ( int  i) [inline]

Definition at line 65 of file nsAbUtils.h.

    {
        return mArray[i];
    }

Member Data Documentation

char** CharPtrArrayGuard::mArray [private]

Definition at line 94 of file nsAbUtils.h.

Definition at line 93 of file nsAbUtils.h.

Definition at line 95 of file nsAbUtils.h.


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