Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Protected Attributes | Friends
nsTemplateMatchSet Class Reference

#include <nsTemplateMatchSet.h>

Collaboration diagram for nsTemplateMatchSet:
Collaboration graph
[legend]

List of all members.

Classes

class  ConstIterator
class  Element

Public Member Functions

 nsTemplateMatchSet (nsFixedSizeAllocator &aPool)
 ~nsTemplateMatchSet ()
ConstIterator First () const
ConstIterator Last () const
void Add (nsTemplateMatch *aMatch)

Protected Attributes

nsFixedSizeAllocator & mPool
ElementmHead

Friends

class ConstIterator

Detailed Description

Definition at line 47 of file nsTemplateMatchSet.h.


Constructor & Destructor Documentation

nsTemplateMatchSet::nsTemplateMatchSet ( nsFixedSizeAllocator &  aPool) [inline]

Definition at line 66 of file nsTemplateMatchSet.h.

Definition at line 52 of file nsTemplateMatchSet.cpp.

{
    while (mHead) {
        Element* doomed = mHead;
        mHead = mHead->mNext;
        doomed->mMatch->Release(mPool);
        delete doomed;
    }

    MOZ_COUNT_DTOR(nsTemplateMatchSet);
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 122 of file nsTemplateMatchSet.h.

                                 {
        Element* element = new Element(aMatch);
        if (element) {
            aMatch->AddRef();
            element->mMatch = aMatch;
            element->mNext = mHead;
            mHead = element;
        } }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 117 of file nsTemplateMatchSet.h.

{ return ConstIterator(mHead); }

Here is the caller graph for this function:

Definition at line 119 of file nsTemplateMatchSet.h.

{ return ConstIterator(nsnull); }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ConstIterator [friend]

Definition at line 49 of file nsTemplateMatchSet.h.


Member Data Documentation

Definition at line 63 of file nsTemplateMatchSet.h.

nsFixedSizeAllocator& nsTemplateMatchSet::mPool [protected]

Definition at line 62 of file nsTemplateMatchSet.h.


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