|
Urho3D
|
XPath query result set. More...
#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Resource/XMLElement.h>
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. | |
| XPathResultSet & | operator= (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< XMLFile > | file_ |
| XML file. | |
| pugi::xpath_node_set * | resultSet_ |
| Pugixml xpath_node_set. | |
XPath query result set.
| bool Dviglo::XPathResultSet::Empty | ( | ) | const |
Return whether result set is empty.
| XMLElement Dviglo::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().
| XMLElement Dviglo::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().
| unsigned Dviglo::XPathResultSet::Size | ( | ) | const |
Return size of result set.
1.8.17