2007-02-21 22:41:31 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
< html > < head > < meta http-equiv = "Content-Type" content = "text/html;charset=iso-8859-1" >
< title > pugixml: pugi::xpath_query Class Reference< / title >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
<!-- Generated by Doxygen 1.4.6 - NO -->
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li id = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
2009-01-25 23:54:00 +03:00
< li > < a href = "pages.html" > < span > Related Pages< / span > < / a > < / li >
2007-02-21 22:41:31 +03:00
< / ul > < / div >
< div class = "tabs" >
< ul >
< li > < a href = "annotated.html" > < span > Class List< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class Members< / span > < / a > < / li >
< / ul > < / div >
< div class = "nav" >
< a class = "el" href = "namespacepugi.html" > pugi< / a > ::< a class = "el" href = "classpugi_1_1xpath__query.html" > xpath_query< / a > < / div >
< h1 > pugi::xpath_query Class Reference< / h1 > <!-- doxytag: class="pugi::xpath_query" --> Collaboration diagram for pugi::xpath_query:< p > < center > < img src = "classpugi_1_1xpath__query__coll__graph.png" border = "0" usemap = "#pugi_1_1xpath__query__coll__map" alt = "Collaboration graph" > < / center >
< center > < font size = "2" > [< a href = "graph_legend.html" > legend< / a > ]< / font > < / center > < a href = "classpugi_1_1xpath__query-members.html" > List of all members.< / a > < hr > < a name = "_details" > < / a > < h2 > Detailed Description< / h2 >
A class that holds compiled XPath query and allows to evaluate query result.
< p >
< table border = "0" cellpadding = "0" cellspacing = "0" >
< tr > < td > < / td > < / tr >
< tr > < td colspan = "2" > < br > < h2 > Public Member Functions< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#df3ce6efc17c1b58a1ff60bedb632140" > xpath_query< / a > (const char *query)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Ctor from string with XPath expression. < a href = "#df3ce6efc17c1b58a1ff60bedb632140" > < / a > < br > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > < a class = "anchor" name = "0ca09e7de62e46feb64d03995f389da3" > < / a > <!-- doxytag: member="pugi::xpath_query::~xpath_query" ref="0ca09e7de62e46feb64d03995f389da3" args="()" -->
< / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#0ca09e7de62e46feb64d03995f389da3" > ~xpath_query< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Dtor. < br > < / td > < / tr >
2009-11-08 22:17:47 +03:00
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > < a class = "el" href = "namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d" > xpath_type_t< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#6e4cafbd247cec997e9a55e705fc2f19" > return_type< / a > () const < / td > < / tr >
2007-02-21 22:41:31 +03:00
2009-11-08 22:17:47 +03:00
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Get query expression return type. < a href = "#6e4cafbd247cec997e9a55e705fc2f19" > < / a > < br > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > bool < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#7f4bd3d0e43b3242c5435b7279ab6feb" > evaluate_boolean< / a > (const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & n) const < / td > < / tr >
2007-02-21 22:41:31 +03:00
2009-11-08 22:17:47 +03:00
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Evaluate expression as boolean value for the context node < em > n< / em > . < a href = "#7f4bd3d0e43b3242c5435b7279ab6feb" > < / a > < br > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#d6538470814cbf572971e83a912f5bd5" > evaluate_number< / a > (const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & n) const < / td > < / tr >
2007-02-21 22:41:31 +03:00
2009-11-08 22:17:47 +03:00
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Evaluate expression as double value for the context node < em > n< / em > . < a href = "#d6538470814cbf572971e83a912f5bd5" > < / a > < br > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > std::string < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#132cb4e92eb1d90569281c2795f00198" > evaluate_string< / a > (const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & n) const < / td > < / tr >
2007-02-21 22:41:31 +03:00
2009-11-08 22:17:47 +03:00
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Evaluate expression as string value for the context node < em > n< / em > . < a href = "#132cb4e92eb1d90569281c2795f00198" > < / a > < br > < / td > < / tr >
< tr > < td class = "memItemLeft" nowrap align = "right" valign = "top" > < a class = "el" href = "classpugi_1_1xpath__node__set.html" > xpath_node_set< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classpugi_1_1xpath__query.html#de21ad3afc39efd1db110a0dfca7b865" > evaluate_node_set< / a > (const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & n) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Evaluate expression as node set for the context node < em > n< / em > . < a href = "#de21ad3afc39efd1db110a0dfca7b865" > < / a > < br > < / td > < / tr >
2007-02-21 22:41:31 +03:00
< / table >
< hr > < h2 > Constructor & Destructor Documentation< / h2 >
< a class = "anchor" name = "df3ce6efc17c1b58a1ff60bedb632140" > < / a > <!-- doxytag: member="pugi::xpath_query::xpath_query" ref="df3ce6efc17c1b58a1ff60bedb632140" args="(const char *query)" --> < p >
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > pugi::xpath_query::xpath_query < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > const char * < / td >
< td class = "mdname1" valign = "top" nowrap > < em > query< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [explicit]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Ctor from string with XPath expression.
< p >
Throws < a class = "el" href = "classpugi_1_1xpath__exception.html" > xpath_exception< / a > on compilation error, std::bad_alloc on out of memory error.< p >
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > query< / em > < / td > < td > - string with XPath expression < / td > < / tr >
< / table >
< / dl >
< / td >
< / tr >
< / table >
< hr > < h2 > Member Function Documentation< / h2 >
2009-11-08 22:17:47 +03:00
< a class = "anchor" name = "6e4cafbd247cec997e9a55e705fc2f19" > < / a > <!-- doxytag: member="pugi::xpath_query::return_type" ref="6e4cafbd247cec997e9a55e705fc2f19" args="() const " --> < p >
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > < a class = "el" href = "namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d" > xpath_type_t< / a > pugi::xpath_query::return_type < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > const< / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Get query expression return type.
< p >
< dl compact > < dt > < b > Returns:< / b > < / dt > < dd > expression return type < / dd > < / dl >
< / td >
< / tr >
< / table >
< a class = "anchor" name = "7f4bd3d0e43b3242c5435b7279ab6feb" > < / a > <!-- doxytag: member="pugi::xpath_query::evaluate_boolean" ref="7f4bd3d0e43b3242c5435b7279ab6feb" args="(const xml_node &n) const " --> < p >
2007-02-21 22:41:31 +03:00
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > bool pugi::xpath_query::evaluate_boolean < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & < / td >
< td class = "mdname1" valign = "top" nowrap > < em > n< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
2009-11-08 22:17:47 +03:00
< td class = "md" nowrap > const< / td >
2007-02-21 22:41:31 +03:00
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Evaluate expression as boolean value for the context node < em > n< / em > .
< p >
If expression does not directly evaluate to boolean, the expression result is converted as through boolean() XPath function call. Throws std::bad_alloc on out of memory error.< p >
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > n< / em > < / td > < td > - context node < / td > < / tr >
< / table >
< / dl >
< dl compact > < dt > < b > Returns:< / b > < / dt > < dd > evaluation result < / dd > < / dl >
< / td >
< / tr >
< / table >
2009-11-08 22:17:47 +03:00
< a class = "anchor" name = "d6538470814cbf572971e83a912f5bd5" > < / a > <!-- doxytag: member="pugi::xpath_query::evaluate_number" ref="d6538470814cbf572971e83a912f5bd5" args="(const xml_node &n) const " --> < p >
2007-02-21 22:41:31 +03:00
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > double pugi::xpath_query::evaluate_number < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & < / td >
< td class = "mdname1" valign = "top" nowrap > < em > n< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
2009-11-08 22:17:47 +03:00
< td class = "md" nowrap > const< / td >
2007-02-21 22:41:31 +03:00
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Evaluate expression as double value for the context node < em > n< / em > .
< p >
If expression does not directly evaluate to double, the expression result is converted as through number() XPath function call. Throws std::bad_alloc on out of memory error.< p >
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > n< / em > < / td > < td > - context node < / td > < / tr >
< / table >
< / dl >
< dl compact > < dt > < b > Returns:< / b > < / dt > < dd > evaluation result < / dd > < / dl >
< / td >
< / tr >
< / table >
2009-11-08 22:17:47 +03:00
< a class = "anchor" name = "132cb4e92eb1d90569281c2795f00198" > < / a > <!-- doxytag: member="pugi::xpath_query::evaluate_string" ref="132cb4e92eb1d90569281c2795f00198" args="(const xml_node &n) const " --> < p >
2007-02-21 22:41:31 +03:00
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > std::string pugi::xpath_query::evaluate_string < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & < / td >
< td class = "mdname1" valign = "top" nowrap > < em > n< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
2009-11-08 22:17:47 +03:00
< td class = "md" nowrap > const< / td >
2007-02-21 22:41:31 +03:00
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Evaluate expression as string value for the context node < em > n< / em > .
< p >
If expression does not directly evaluate to string, the expression result is converted as through string() XPath function call. Throws std::bad_alloc on out of memory error.< p >
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > n< / em > < / td > < td > - context node < / td > < / tr >
< / table >
< / dl >
< dl compact > < dt > < b > Returns:< / b > < / dt > < dd > evaluation result < / dd > < / dl >
< / td >
< / tr >
< / table >
2009-11-08 22:17:47 +03:00
< a class = "anchor" name = "de21ad3afc39efd1db110a0dfca7b865" > < / a > <!-- doxytag: member="pugi::xpath_query::evaluate_node_set" ref="de21ad3afc39efd1db110a0dfca7b865" args="(const xml_node &n) const " --> < p >
2007-02-21 22:41:31 +03:00
< table class = "mdTable" cellpadding = "2" cellspacing = "0" >
< tr >
< td class = "mdRow" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > < a class = "el" href = "classpugi_1_1xpath__node__set.html" > xpath_node_set< / a > pugi::xpath_query::evaluate_node_set < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > const < a class = "el" href = "classpugi_1_1xml__node.html" > xml_node< / a > & < / td >
< td class = "mdname1" valign = "top" nowrap > < em > n< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
2009-11-08 22:17:47 +03:00
< td class = "md" nowrap > const< / td >
2007-02-21 22:41:31 +03:00
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = "5" cellpadding = "0" border = "0" >
< tr >
< td >
< / td >
< td >
< p >
Evaluate expression as node set for the context node < em > n< / em > .
< p >
2009-11-08 22:17:47 +03:00
If expression does not directly evaluate to node set, throws < a class = "el" href = "classpugi_1_1xpath__exception.html" > xpath_exception< / a > . Throws std::bad_alloc on out of memory error.< p >
2007-02-21 22:41:31 +03:00
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > n< / em > < / td > < td > - context node < / td > < / tr >
< / table >
< / dl >
< dl compact > < dt > < b > Returns:< / b > < / dt > < dd > evaluation result < / dd > < / dl >
< / td >
< / tr >
< / table >
2010-01-05 20:04:50 +03:00
< hr size = "1" > < address style = "align: right;" > < small > Generated on Tue Jan 5 20:02:10 2010 for pugixml by
2007-02-21 22:41:31 +03:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = "0" > < / a > 1.4.6-NO < / small > < / address >
< / body >
< / html >