Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
txXPathNode Class Reference

#include <txXPathNode.h>

List of all members.

Public Member Functions

PRBool operator== (const txXPathNode &aNode) const
PRBool operator!= (const txXPathNode &aNode) const

Private Types

enum  PositionType { eDocument = (PRUint32)-2, eContent = (PRUint32)-1 }

Private Member Functions

 txXPathNode (nsIDocument *aDocument)
 txXPathNode (nsIContent *aContent, PRUint32 aIndex=eContent)
 txXPathNode (const txXPathNode &aNode)
PRBool isDocument () const
PRBool isContent () const
PRBool isAttribute () const

Private Attributes

union {
nsIDocumentmDocument
nsIContentmContent
}; 
PRUint32 mIndex

Friends

class txNodeSet
class txXPathNativeNode
class txXPathNodeUtils
class txXPathTreeWalker

Detailed Description

Definition at line 60 of file txXPathNode.h.


Member Enumeration Documentation

enum txXPathNode::PositionType [private]
Enumerator:
eDocument 
eContent 

Definition at line 107 of file txXPathNode.h.

    {
        eDocument = (PRUint32)-2,
        eContent = (PRUint32)-1
    };

Constructor & Destructor Documentation

txXPathNode::txXPathNode ( nsIDocument aDocument) [inline, private]

Definition at line 83 of file txXPathNode.h.

                                        : mDocument(aDocument),
                                          mIndex(eDocument)
    {
    }
txXPathNode::txXPathNode ( nsIContent aContent,
PRUint32  aIndex = eContent 
) [inline, private]

Definition at line 87 of file txXPathNode.h.

        : mContent(aContent),
          mIndex(aIndex)
    {
    }
txXPathNode::txXPathNode ( const txXPathNode aNode) [private]

Definition at line 329 of file txMozillaXPathTreeWalker.cpp.

                                                 : mIndex(aNode.mIndex)
{
    // Hopefully it's ok to access mContent through mDocument.
    mDocument = aNode.mDocument;
}

Member Function Documentation

PRBool txXPathNode::isAttribute ( ) const [inline, private]

Definition at line 102 of file txXPathNode.h.

    {
        return mIndex != eDocument && mIndex != eContent;
    };

Here is the caller graph for this function:

PRBool txXPathNode::isContent ( ) const [inline, private]

Definition at line 98 of file txXPathNode.h.

    {
        return mIndex == eContent;
    };

Here is the caller graph for this function:

PRBool txXPathNode::isDocument ( ) const [inline, private]

Definition at line 94 of file txXPathNode.h.

    {
        return mIndex == eDocument;
    };

Here is the caller graph for this function:

PRBool txXPathNode::operator!= ( const txXPathNode aNode) const [inline]

Definition at line 64 of file txXPathNode.h.

    {
        return !(*this == aNode);
    }
PRBool txXPathNode::operator== ( const txXPathNode aNode) const

Definition at line 336 of file txMozillaXPathTreeWalker.cpp.

{
    if (mIndex != aNode.mIndex) {
        return PR_FALSE;
    }

    // Hopefully it's ok to access mContent through mDocument.
    return (mDocument == aNode.mDocument);
}

Friends And Related Function Documentation

friend class txNodeSet [friend]

Definition at line 70 of file txXPathNode.h.

friend class txXPathNativeNode [friend]

Definition at line 71 of file txXPathNode.h.

friend class txXPathNodeUtils [friend]

Definition at line 72 of file txXPathNode.h.

friend class txXPathTreeWalker [friend]

Definition at line 73 of file txXPathNode.h.


Member Data Documentation

union { ... } [private]

Definition at line 116 of file txXPathNode.h.


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