Back to index

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

#include <nsTreeRowTestNode.h>

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

List of all members.

Public Member Functions

 Element (nsIRDFResource *aResource)
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, nsIRDFResource *aResource)
static void Destroy (nsFixedSizeAllocator &aPool, Element *aElement)

Static Protected Member Functions

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

Protected Attributes

nsCOMPtr< nsIRDFResourcemResource

Detailed Description

Definition at line 65 of file nsTreeRowTestNode.h.


Constructor & Destructor Documentation

Definition at line 73 of file nsTreeRowTestNode.h.

Here is the caller graph for this function:

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

Definition at line 77 of file nsTreeRowTestNode.h.

Here is the caller graph for this function:


Member Function Documentation

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

Implements MemoryElement.

Definition at line 102 of file nsTreeRowTestNode.h.

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

Here is the call graph for this function:

static Element* nsTreeRowTestNode::Element::Create ( nsFixedSizeAllocator &  aPool,
nsIRDFResource aResource 
) [inline, static]

Definition at line 80 of file nsTreeRowTestNode.h.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 85 of file nsTreeRowTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 95 of file nsTreeRowTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 92 of file nsTreeRowTestNode.h.

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

Here is the call graph for this function:

static void nsTreeRowTestNode::Element::operator delete ( void ,
size_t   
) [inline, static, protected]

Definition at line 70 of file nsTreeRowTestNode.h.

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

Definition at line 69 of file nsTreeRowTestNode.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* nsTreeRowTestNode::Element::Type ( ) const [inline, virtual]

Implements MemoryElement.

Definition at line 89 of file nsTreeRowTestNode.h.

                                         {
            return "nsTreeRowTestNode::Element"; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 106 of file nsTreeRowTestNode.h.


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