Back to index

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

#include <nsRDFPropertyTestNode.h>

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

List of all members.

Public Member Functions

 Element (nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
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 *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
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< nsIRDFResourcemSource
nsCOMPtr< nsIRDFResourcemProperty
nsCOMPtr< nsIRDFNodemTarget

Detailed Description

Definition at line 100 of file nsRDFPropertyTestNode.h.


Constructor & Destructor Documentation

nsRDFPropertyTestNode::Element::Element ( nsIRDFResource aSource,
nsIRDFResource aProperty,
nsIRDFNode aTarget 
) [inline]

Definition at line 108 of file nsRDFPropertyTestNode.h.

            : mSource(aSource),
              mProperty(aProperty),
              mTarget(aTarget) {
            MOZ_COUNT_CTOR(nsRDFPropertyTestNode::Element); }

Here is the caller graph for this function:

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

Definition at line 116 of file nsRDFPropertyTestNode.h.

Here is the caller graph for this function:


Member Function Documentation

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

Implements MemoryElement.

Definition at line 148 of file nsRDFPropertyTestNode.h.

                                                        {
            return Create(*NS_STATIC_CAST(nsFixedSizeAllocator*, aPool),
                          mSource, mProperty, mTarget); }

Here is the call graph for this function:

static Element* nsRDFPropertyTestNode::Element::Create ( nsFixedSizeAllocator &  aPool,
nsIRDFResource aSource,
nsIRDFResource aProperty,
nsIRDFNode aTarget 
) [inline, static]

Definition at line 119 of file nsRDFPropertyTestNode.h.

                                    {
            void* place = aPool.Alloc(sizeof(Element));
            return place ? ::new (place) Element(aSource, aProperty, aTarget) : nsnull; }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 127 of file nsRDFPropertyTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 139 of file nsRDFPropertyTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 134 of file nsRDFPropertyTestNode.h.

Here is the call graph for this function:

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

Definition at line 105 of file nsRDFPropertyTestNode.h.

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

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

Implements MemoryElement.

Definition at line 131 of file nsRDFPropertyTestNode.h.

                                         {
            return "nsRDFPropertyTestNode::Element"; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 154 of file nsRDFPropertyTestNode.h.

Definition at line 153 of file nsRDFPropertyTestNode.h.

Definition at line 155 of file nsRDFPropertyTestNode.h.


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