Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions | Public Attributes | Protected Member Functions | Static Private Member Functions
nsConflictSet::SupportEntry Class Reference

#include <nsConflictSet.h>

Collaboration diagram for nsConflictSet::SupportEntry:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static SupportEntryCreate (nsFixedSizeAllocator &aPool)
static void Destroy (nsFixedSizeAllocator &aPool, SupportEntry *aEntry)

Public Attributes

PLHashEntry mHashEntry
MemoryElementmElement
nsTemplateMatchRefSet mMatchSet

Protected Member Functions

 SupportEntry ()
 ~SupportEntry ()

Static Private Member Functions

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

Detailed Description

Definition at line 286 of file nsConflictSet.h.


Constructor & Destructor Documentation

Definition at line 294 of file nsConflictSet.h.

Here is the caller graph for this function:

Definition at line 297 of file nsConflictSet.h.

Here is the caller graph for this function:


Member Function Documentation

static SupportEntry* nsConflictSet::SupportEntry::Create ( nsFixedSizeAllocator &  aPool) [inline, static]

Definition at line 303 of file nsConflictSet.h.

                                            {
            void* place = aPool.Alloc(sizeof(SupportEntry));
            return place ? ::new (place) SupportEntry() : nsnull; }

Here is the call graph for this function:

Here is the caller graph for this function:

void nsConflictSet::SupportEntry::Destroy ( nsFixedSizeAllocator &  aPool,
SupportEntry aEntry 
) [static]

Definition at line 409 of file nsConflictSet.cpp.

{
    // We need to Release() the matches here, because this is where
    // we've got access to the pool from which they were
    // allocated. Since SupportEntry's dtor is protected, nobody else
    // can be creating SupportEntry objects (e.g., on the stack).
    nsTemplateMatchRefSet::ConstIterator last = aEntry->mMatchSet.Last();
    for (nsTemplateMatchRefSet::ConstIterator iter = aEntry->mMatchSet.First();
         iter != last;
         ++iter)
        iter->Release(aPool);

    aEntry->~SupportEntry();
    aPool.Free(aEntry, sizeof(*aEntry));
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 291 of file nsConflictSet.h.

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

Definition at line 290 of file nsConflictSet.h.

{ return 0; }

Member Data Documentation

Definition at line 311 of file nsConflictSet.h.

Definition at line 310 of file nsConflictSet.h.

Definition at line 312 of file nsConflictSet.h.


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