Back to index

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

List of all members.

Public Member Functions

 ~nsXBLInsertionPointEntry ()
nsIContentGetInsertionParent ()
PRUint32 GetInsertionIndex ()
void SetInsertionIndex (PRUint32 aIndex)
nsIContentGetDefaultContent ()
void SetDefaultContent (nsIContent *aChildren)
nsrefcnt AddRef ()
nsrefcnt Release ()

Static Public Member Functions

static nsXBLInsertionPointEntryCreate (nsIContent *aParent)
static void Destroy (nsXBLInsertionPointEntry *aSelf)

Protected Member Functions

 nsXBLInsertionPointEntry (nsIContent *aParent)

Protected Attributes

nsCOMPtr< nsIContentmInsertionParent
nsCOMPtr< nsIContentmDefaultContent
PRUint32 mInsertionIndex
nsrefcnt mRefCnt

Static Private Member Functions

static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *, size_t)

Detailed Description

Definition at line 142 of file nsXBLPrototypeBinding.cpp.


Constructor & Destructor Documentation

Definition at line 144 of file nsXBLPrototypeBinding.cpp.

                              {
    if (mDefaultContent) {
      // mDefaultContent is a sort of anonymous content within the XBL
      // document, and we own and manage it.  Unhook it here, since we're going
      // away.
      mDefaultContent->UnbindFromTree();
    }      
  }

Here is the caller graph for this function:

Definition at line 195 of file nsXBLPrototypeBinding.cpp.

    : mInsertionParent(aParent),
      mInsertionIndex(0),
      mRefCnt(0) { }

Here is the caller graph for this function:


Member Function Documentation

Definition at line 173 of file nsXBLPrototypeBinding.cpp.

                    {
    ++mRefCnt;
    NS_LOG_ADDREF(this, mRefCnt, "nsXBLInsertionPointEntry", sizeof(nsXBLInsertionPointEntry));
    return mRefCnt;
  }

Here is the caller graph for this function:

static nsXBLInsertionPointEntry* nsXBLInsertionPointEntry::Create ( nsIContent aParent) [inline, static]

Definition at line 162 of file nsXBLPrototypeBinding.cpp.

                              {
    void* place = nsXBLPrototypeBinding::kInsPool->Alloc(sizeof(nsXBLInsertionPointEntry));
    return place ? ::new (place) nsXBLInsertionPointEntry(aParent) : nsnull;
  }

Here is the call graph for this function:

static void nsXBLInsertionPointEntry::Destroy ( nsXBLInsertionPointEntry aSelf) [inline, static]

Definition at line 168 of file nsXBLPrototypeBinding.cpp.

                                           {
    aSelf->~nsXBLInsertionPointEntry();
    nsXBLPrototypeBinding::kInsPool->Free(aSelf, sizeof(*aSelf));
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 157 of file nsXBLPrototypeBinding.cpp.

{ return mDefaultContent; }

Here is the caller graph for this function:

Definition at line 154 of file nsXBLPrototypeBinding.cpp.

{ return mInsertionIndex; }

Here is the caller graph for this function:

Definition at line 153 of file nsXBLPrototypeBinding.cpp.

{ return mInsertionParent; }

Here is the caller graph for this function:

static void nsXBLInsertionPointEntry::operator delete ( void ,
size_t   
) [inline, static, private]

Definition at line 204 of file nsXBLPrototypeBinding.cpp.

{}
static void* nsXBLInsertionPointEntry::operator new ( size_t  ) [inline, static, private]

Definition at line 203 of file nsXBLPrototypeBinding.cpp.

{ return 0; }

Definition at line 179 of file nsXBLPrototypeBinding.cpp.

                     {
    --mRefCnt;
    NS_LOG_RELEASE(this, mRefCnt, "nsXBLInsertionPointEntry");
    if (mRefCnt == 0) {
      Destroy(this);
      return 0;
    }
    return mRefCnt;
  }

Here is the call graph for this function:

Definition at line 158 of file nsXBLPrototypeBinding.cpp.

{ mDefaultContent = aChildren; }

Here is the caller graph for this function:

Definition at line 155 of file nsXBLPrototypeBinding.cpp.

{ mInsertionIndex = aIndex; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 191 of file nsXBLPrototypeBinding.cpp.

Definition at line 192 of file nsXBLPrototypeBinding.cpp.

Definition at line 190 of file nsXBLPrototypeBinding.cpp.

Definition at line 193 of file nsXBLPrototypeBinding.cpp.


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