Back to index

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

#include <nsGraphicsStateBeOS.h>

Collaboration diagram for nsGraphicsStatePool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsGraphicsStatePool ()
 ~nsGraphicsStatePool ()
 nsGraphicsStatePool ()
 ~nsGraphicsStatePool ()
 nsGraphicsStatePool ()
 ~nsGraphicsStatePool ()

Static Public Member Functions

static nsGraphicsStateGetNewGS ()
static void ReleaseGS (nsGraphicsState *aGS)
static nsGraphicsStateGetNewGS ()
static void ReleaseGS (nsGraphicsState *aGS)
static nsGraphicsStateGetNewGS ()
static void ReleaseGS (nsGraphicsState *aGS)

Private Member Functions

nsGraphicsStatePrivateGetNewGS ()
void PrivateReleaseGS (nsGraphicsState *aGS)
nsGraphicsStatePrivateGetNewGS ()
void PrivateReleaseGS (nsGraphicsState *aGS)
nsGraphicsStatePrivateGetNewGS ()
void PrivateReleaseGS (nsGraphicsState *aGS)

Static Private Member Functions

static nsGraphicsStatePoolPrivateGetPool ()
static nsGraphicsStatePoolPrivateGetPool ()
static nsGraphicsStatePoolPrivateGetPool ()

Private Attributes

nsGraphicsStatemFreeList

Static Private Attributes

static nsGraphicsStatePoolgsThePool = nsnull

Detailed Description

Definition at line 70 of file nsGraphicsStateBeOS.h.


Constructor & Destructor Documentation

Definition at line 55 of file nsGraphicsStateBeOS.cpp.

Here is the caller graph for this function:

Definition at line 111 of file nsGraphicsStateBeOS.cpp.

{
       nsGraphicsState* gs = mFreeList;
       while (gs != nsnull) {
              nsGraphicsState* next = gs->mNext;
              delete gs;
              gs = next;
       }
}

Definition at line 101 of file nsGraphicsStatePh.h.

Definition at line 103 of file nsGraphicsStatePh.h.

              {
       nsGraphicsState* gs = mFreeList;
       while (gs != nsnull) {
       nsGraphicsState* next = gs->mNext;
       delete gs;
       gs = next;
              }
              }

Member Function Documentation

Definition at line 69 of file nsGraphicsStateBeOS.cpp.

{
  nsGraphicsStatePool * thePool = PrivateGetPool();

  return thePool->PrivateGetNewGS();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static nsGraphicsState* nsGraphicsStatePool::GetNewGS ( ) [inline, static]

Definition at line 87 of file nsGraphicsStatePh.h.

              {
       nsGraphicsStatePool * thePool = PrivateGetPool();
       return thePool->PrivateGetNewGS();
              }

Here is the call graph for this function:

Definition at line 122 of file nsGraphicsStateBeOS.cpp.

{
       nsGraphicsState* gs = mFreeList;
       if (gs != nsnull) {
              mFreeList = gs->mNext;
              return gs;
       }
       return new nsGraphicsState;
}

Here is the caller graph for this function:

Definition at line 99 of file nsGraphicsStateBeOS.cpp.

{
  if (nsnull == gsThePool)
  {
    gsThePool = new nsGraphicsStatePool();
  }

  return gsThePool;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static nsGraphicsStatePool* nsGraphicsStatePool::PrivateGetPool ( ) [inline, static, private]

Definition at line 133 of file nsGraphicsStateBeOS.cpp.

{
  //   aGS->Clear();
       aGS->mNext = mFreeList;
       mFreeList = aGS;
}

Here is the caller graph for this function:

Definition at line 77 of file nsGraphicsStateBeOS.cpp.

{
  nsGraphicsStatePool * thePool = PrivateGetPool();

  thePool->PrivateReleaseGS(aGS);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void nsGraphicsStatePool::ReleaseGS ( nsGraphicsState aGS) [inline, static]

Definition at line 93 of file nsGraphicsStatePh.h.

              {
       nsGraphicsStatePool * thePool = PrivateGetPool();
       thePool->PrivateReleaseGS(aGS);
              }

Here is the call graph for this function:


Member Data Documentation

Definition at line 87 of file nsGraphicsStateBeOS.h.

Definition at line 81 of file nsGraphicsStateBeOS.h.


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