Back to index

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

#include <nsRDFConInstanceTestNode.h>

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

List of all members.

Public Member Functions

 Element (nsIRDFResource *aContainer, Test aContainerTest, Test aEmptyTest)
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 *aContainer, Test aContainerTest, Test aEmptyTest)
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< nsIRDFResourcemContainer
Test mContainerTest
Test mEmptyTest

Detailed Description

Definition at line 85 of file nsRDFConInstanceTestNode.h.


Constructor & Destructor Documentation

nsRDFConInstanceTestNode::Element::Element ( nsIRDFResource aContainer,
Test  aContainerTest,
Test  aEmptyTest 
) [inline]

Definition at line 93 of file nsRDFConInstanceTestNode.h.

            : mContainer(aContainer),
              mContainerTest(aContainerTest),
              mEmptyTest(aEmptyTest) {
            MOZ_COUNT_CTOR(nsRDFConInstanceTestNode::Element); }

Here is the caller graph for this function:

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

Definition at line 101 of file nsRDFConInstanceTestNode.h.

Here is the caller graph for this function:


Member Function Documentation

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

Implements MemoryElement.

Definition at line 131 of file nsRDFConInstanceTestNode.h.

                                                        {
            return Create(*NS_STATIC_CAST(nsFixedSizeAllocator*, aPool),
                          mContainer, mContainerTest, mEmptyTest); }

Here is the call graph for this function:

static Element* nsRDFConInstanceTestNode::Element::Create ( nsFixedSizeAllocator &  aPool,
nsIRDFResource aContainer,
Test  aContainerTest,
Test  aEmptyTest 
) [inline, static]

Definition at line 104 of file nsRDFConInstanceTestNode.h.

                                                     {
            void* place = aPool.Alloc(sizeof(Element));
            return place ? ::new (place) Element(aContainer, aContainerTest, aEmptyTest) : nsnull; }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 110 of file nsRDFConInstanceTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 122 of file nsRDFConInstanceTestNode.h.

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

Here is the call graph for this function:

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

Implements MemoryElement.

Definition at line 117 of file nsRDFConInstanceTestNode.h.

Here is the call graph for this function:

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

Definition at line 90 of file nsRDFConInstanceTestNode.h.

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

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

Implements MemoryElement.

Definition at line 114 of file nsRDFConInstanceTestNode.h.

                                         {
            return "nsRDFConInstanceTestNode::Element"; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 136 of file nsRDFConInstanceTestNode.h.

Definition at line 137 of file nsRDFConInstanceTestNode.h.

Definition at line 138 of file nsRDFConInstanceTestNode.h.


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