Back to index

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

#include <nsIView.h>

Collaboration diagram for nsWeakView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsWeakView (nsIView *aView)
 ~nsWeakView ()
PRBool IsAlive ()
nsIViewGetView ()
void SetPrevious (nsWeakView *aWeakView)
void Clear ()

Static Private Member Functions

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

Private Attributes

nsWeakViewmPrev
nsIView_MOZILLA_1_8_BRANCHmView

Detailed Description

Definition at line 393 of file nsIView.h.


Constructor & Destructor Documentation

nsWeakView::nsWeakView ( nsIView aView) [inline]

Definition at line 396 of file nsIView.h.

Here is the call graph for this function:

Definition at line 404 of file nsIView.h.

  {
    if (mView) {
      NS_ASSERTION(mView->mDeletionObserver == this,
                   "nsWeakViews deleted in wrong order!");
      // Clear deletion observer temporarily.
      mView->SetDeletionObserver(nsnull);
      // Put back the previous deletion observer.
      mView->SetDeletionObserver(mPrev);
    }
  }

Here is the call graph for this function:


Member Function Documentation

void nsWeakView::Clear ( void  ) [inline]

Definition at line 422 of file nsIView.h.

  {
    if (mPrev) {
      mPrev->Clear();
    }
    mView = nsnull;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 418 of file nsIView.h.

{ return mView; }

Here is the caller graph for this function:

Definition at line 416 of file nsIView.h.

{ return !!mView; }
static void nsWeakView::operator delete ( void ,
size_t   
) [inline, static, private]

Definition at line 431 of file nsIView.h.

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

Definition at line 430 of file nsIView.h.

{ return 0; }
void nsWeakView::SetPrevious ( nsWeakView aWeakView) [inline]

Definition at line 420 of file nsIView.h.

{ mPrev = aWeakView; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 432 of file nsIView.h.

Definition at line 433 of file nsIView.h.


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