U3D
Open-source, cross-platform 2D and 3D game engine built in C++
Loading...
Searching...
No Matches
Urho3D::XPathResultSet Class Reference

XPath query result set. More...

#include </var/dev/u3d/stable/Source/Urho3D/Resource/XMLElement.h>

Collaboration diagram for Urho3D::XPathResultSet:
[legend]

Public Member Functions

 XPathResultSet ()
 Construct empty result set.
 
 XPathResultSet (XMLFile *file, pugi::xpath_node_set *resultSet)
 Construct with result set from XPath query.
 
 XPathResultSet (const XPathResultSet &rhs)
 Copy-construct.
 
 ~XPathResultSet ()
 Destruct.
 
XPathResultSetoperator= (const XPathResultSet &rhs)
 Assignment operator.
 
XMLElement operator[] (unsigned index) const
 
XMLElement FirstResult ()
 
unsigned Size () const
 
bool Empty () const
 
pugi::xpath_node_set * GetXPathNodeSet () const
 Return pugixml xpath_node_set.
 

Private Attributes

WeakPtr< XMLFilefile_
 XML file.
 
pugi::xpath_node_set * resultSet_
 Pugixml xpath_node_set.
 

Detailed Description

XPath query result set.

Member Function Documentation

◆ Empty()

bool Urho3D::XPathResultSet::Empty ( ) const

Return whether result set is empty.

◆ FirstResult()

XMLElement Urho3D::XPathResultSet::FirstResult ( )

Return the first result in the set. Call XMLElement::GetNextResult() to get the subsequent result in the set. Note: The XPathResultSet return value must be stored in a lhs variable to ensure the underlying xpath_node_set* is still valid while performing XPathResultSet::FirstResult(), XPathResultSet::operator [], and XMLElement::NextResult().

Here is the call graph for this function:

◆ operator[]()

XMLElement Urho3D::XPathResultSet::operator[] ( unsigned  index) const

Return the n-th result in the set. Call XMLElement::GetNextResult() to get the subsequent result in the set. Note: The XPathResultSet return value must be stored in a lhs variable to ensure the underlying xpath_node_set* is still valid while performing XPathResultSet::FirstResult(), XPathResultSet::operator [], and XMLElement::NextResult().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Size()

unsigned Urho3D::XPathResultSet::Size ( ) const

Return size of result set.

Here is the caller graph for this function:

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