mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 01:47:55 +08:00
Path and iterator fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@13 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
2fdfe430a2
commit
2164a1ddb5
@ -353,10 +353,12 @@ namespace pugi
|
|||||||
/// Use for shallow drill-downs.
|
/// Use for shallow drill-downs.
|
||||||
xml_node first_node(xml_node_type type) const;
|
xml_node first_node(xml_node_type type) const;
|
||||||
|
|
||||||
|
#ifndef PUGIXML_NO_STL
|
||||||
/// Compile the absolute node path from root as a text string.
|
/// Compile the absolute node path from root as a text string.
|
||||||
/// \param delimiter - Delimiter character to insert between element names.
|
/// \param delimiter - Delimiter character to insert between element names.
|
||||||
/// \return path string (e.g. with '/' as delimiter, '/document/.../this'.
|
/// \return path string (e.g. with '/' as delimiter, '/document/.../this'.
|
||||||
std::string path(char delimiter = '/') const;
|
std::string path(char delimiter = '/') const;
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Search for a node by path.
|
/// Search for a node by path.
|
||||||
/// \param path - Path string; e.g. './foo/bar' (relative to node), '/foo/bar' (relative
|
/// \param path - Path string; e.g. './foo/bar' (relative to node), '/foo/bar' (relative
|
||||||
@ -370,7 +372,10 @@ namespace pugi
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Child node iterator.
|
/// Child node iterator.
|
||||||
class xml_node_iterator: public std::iterator<std::bidirectional_iterator_tag, const xml_node>
|
class xml_node_iterator
|
||||||
|
#ifndef PUGIXML_NO_STL
|
||||||
|
: public std::iterator<std::bidirectional_iterator_tag, const xml_node>
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
friend class xml_node;
|
friend class xml_node;
|
||||||
|
|
||||||
@ -404,7 +409,10 @@ namespace pugi
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Attribute iterator.
|
/// Attribute iterator.
|
||||||
class xml_attribute_iterator: public std::iterator<std::bidirectional_iterator_tag, const xml_attribute>
|
class xml_attribute_iterator
|
||||||
|
#ifndef PUGIXML_NO_STL
|
||||||
|
: public std::iterator<std::bidirectional_iterator_tag, const xml_attribute>
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
friend class xml_node;
|
friend class xml_node;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user