Back to index

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

#include <nsContentTestNode.h>

Inheritance diagram for nsContentTestNode::Element:
Inheritance graph
[legend]
Collaboration diagram for nsContentTestNode::Element:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Element (nsIContent *aContent)
virtual ~Element ()
virtual const char * Type () const
virtual PLHashNumber Hash () const
virtual PRBool Equals (const MemoryElement &aElement) const
virtual MemoryElementClone (void *aPool) const
PRBool operator== (const MemoryElement &aMemoryElement) const
PRBool operator!= (const MemoryElement &aMemoryElement) const

Static Public Member Functions

static ElementCreate (nsFixedSizeAllocator &aPool, nsIContent *aContent)
static void Destroy (nsFixedSizeAllocator &aPool, Element *aElement)

Protected Attributes

nsCOMPtr< nsIContentmContent

Static Private Member Functions

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

Detailed Description

Definition at line 68 of file nsContentTestNode.h.


Constructor & Destructor Documentation

Definition at line 76 of file nsContentTestNode.h.

Here is the caller graph for this function:

virtual nsContentTestNode::Element::~Element ( ) [inline, virtual]

Definition at line 80 of file nsContentTestNode.h.

Here is the caller graph for this function:


Member Function Documentation

virtual MemoryElement* nsContentTestNode::Element::Clone ( void aPool) const [inline, virtual]

Implements MemoryElement.

Definition at line 105 of file nsContentTestNode.h.

                                                        {
            return Create(*NS_STATIC_CAST(nsFixedSizeAllocator*, aPool), mContent); }

Here is the call graph for this function:

static Element* nsContentTestNode::Element::Create ( nsFixedSizeAllocator &  aPool,
nsIContent aContent 
) [inline, static]

Definition at line 83 of file nsContentTestNode.h.

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

Here is the call graph for this function:

Here is the caller graph for this function:

static void nsContentTestNode::Element::Destroy ( nsFixedSizeAllocator &  aPool,
Element aElement 
) [inline, static]

Definition at line 88 of file nsContentTestNode.h.

                                                                {
            aElement->~Element();
            aPool.Free(aElement, sizeof(*aElement)); }

Here is the call graph for this function:

virtual PRBool nsContentTestNode::Element::Equals ( const MemoryElement aElement) const [inline, virtual]

Implements MemoryElement.

Definition at line 98 of file nsContentTestNode.h.

                                                                   {
            if (aElement.Type() == Type()) {
                const Element& element = NS_STATIC_CAST(const Element&, aElement);
                return mContent == element.mContent;
            }
            return PR_FALSE; }

Here is the call graph for this function:

virtual PLHashNumber nsContentTestNode::Element::Hash ( ) const [inline, virtual]

Implements MemoryElement.

Definition at line 95 of file nsContentTestNode.h.

                                          {
            return PLHashNumber(NS_PTR_TO_INT32(mContent.get())) >> 2; }

Here is the call graph for this function:

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

Definition at line 73 of file nsContentTestNode.h.

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

Definition at line 72 of file nsContentTestNode.h.

{ return 0; }
PRBool MemoryElement::operator!= ( const MemoryElement aMemoryElement) const [inline, inherited]

Definition at line 250 of file nsRuleNetwork.h.

                                                                 {
        return !Equals(aMemoryElement);
    }

Here is the call graph for this function:

PRBool MemoryElement::operator== ( const MemoryElement aMemoryElement) const [inline, inherited]

Definition at line 246 of file nsRuleNetwork.h.

                                                                 {
        return Equals(aMemoryElement);
    }

Here is the call graph for this function:

virtual const char* nsContentTestNode::Element::Type ( ) const [inline, virtual]

Implements MemoryElement.

Definition at line 92 of file nsContentTestNode.h.

                                         {
            return "nsContentTestNode::Element"; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 109 of file nsContentTestNode.h.


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