LibreOffice Module unoxml (master) 1
Public Member Functions | Private Attributes | List of all members
XPath::CNodeList Class Reference

#include <nodelist.hxx>

Inheritance diagram for XPath::CNodeList:
[legend]
Collaboration diagram for XPath::CNodeList:
[legend]

Public Member Functions

 CNodeList (::rtl::Reference< DOM::CDocument > pDocument, ::osl::Mutex &rMutex, std::shared_ptr< xmlXPathObject > const &rxpathObj)
 
virtual sal_Int32 SAL_CALL getLength () override
 The number of nodes in the list. More...
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item (sal_Int32 index) override
 Returns the indexth item in the collection. More...
 

Private Attributes

::rtl::Reference< DOM::CDocument > const m_pDocument
 #i115995# keep document alive More...
 
::osl::Mutex & m_rMutex
 
std::shared_ptr< xmlXPathObject > m_pXPathObj
 retain the result set in case the CXPathObject is released More...
 
xmlNodeSetPtr m_pNodeSet
 

Detailed Description

Definition at line 44 of file nodelist.hxx.

Constructor & Destructor Documentation

◆ CNodeList()

XPath::CNodeList::CNodeList ( ::rtl::Reference< DOM::CDocument pDocument,
::osl::Mutex &  rMutex,
std::shared_ptr< xmlXPathObject > const &  rxpathObj 
)

Definition at line 31 of file nodelist.cxx.

References m_pNodeSet, m_pXPathObj, and m_rMutex.

Member Function Documentation

◆ getLength()

sal_Int32 SAL_CALL XPath::CNodeList::getLength ( )
overridevirtual

The number of nodes in the list.

Definition at line 49 of file nodelist.cxx.

References m_pNodeSet, m_rMutex, and value.

◆ item()

Reference< XNode > SAL_CALL XPath::CNodeList::item ( sal_Int32  index)
overridevirtual

Returns the indexth item in the collection.

Definition at line 62 of file nodelist.cxx.

References index, m_pDocument, m_pNodeSet, and m_rMutex.

Member Data Documentation

◆ m_pDocument

::rtl::Reference< DOM::CDocument > const XPath::CNodeList::m_pDocument
private

#i115995# keep document alive

Definition at line 48 of file nodelist.hxx.

Referenced by item().

◆ m_pNodeSet

xmlNodeSetPtr XPath::CNodeList::m_pNodeSet
private

Definition at line 52 of file nodelist.hxx.

Referenced by CNodeList(), getLength(), and item().

◆ m_pXPathObj

std::shared_ptr<xmlXPathObject> XPath::CNodeList::m_pXPathObj
private

retain the result set in case the CXPathObject is released

Definition at line 51 of file nodelist.hxx.

Referenced by CNodeList().

◆ m_rMutex

::osl::Mutex& XPath::CNodeList::m_rMutex
private

Definition at line 49 of file nodelist.hxx.

Referenced by getLength(), and item().


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