Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
txResultHolder Class Reference

Helper class to keep Mozilla node objects alive as long as the nodeset is alive. More...

#include <nsXPathResult.h>

Collaboration diagram for txResultHolder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~txResultHolder ()
txAExprResultget ()
void set (txAExprResult *aResult)

Private Member Functions

void releaseNodeSet ()

Private Attributes

nsRefPtr< txAExprResultmResult

Detailed Description

Helper class to keep Mozilla node objects alive as long as the nodeset is alive.

Definition at line 67 of file nsXPathResult.h.


Constructor & Destructor Documentation

Definition at line 70 of file nsXPathResult.h.

Here is the call graph for this function:


Member Function Documentation

Definition at line 75 of file nsXPathResult.h.

    {
        return mResult;
    }

Here is the caller graph for this function:

Definition at line 368 of file nsXPathResult.cpp.

{
    if (mResult && mResult->getResultType() == txAExprResult::NODESET) {
        txNodeSet *nodeSet =
            NS_STATIC_CAST(txNodeSet*,
                           NS_STATIC_CAST(txAExprResult*, mResult));
        PRInt32 i, count = nodeSet->size();
        for (i = 0; i < count; ++i) {
            txXPathNativeNode::release(nodeSet->get(i));
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 349 of file nsXPathResult.cpp.

{
    releaseNodeSet();

    // XXX This will keep the recycler alive, should we clear it?
    mResult = aResult;

    if (mResult && mResult->getResultType() == txAExprResult::NODESET) {
        txNodeSet *nodeSet =
            NS_STATIC_CAST(txNodeSet*,
                           NS_STATIC_CAST(txAExprResult*, mResult));
        PRInt32 i, count = nodeSet->size();
        for (i = 0; i < count; ++i) {
            txXPathNativeNode::addRef(nodeSet->get(i));
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 84 of file nsXPathResult.h.


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