xpath_node_set Class Reference

xpath_node_set Class Reference

#include <pugixml.hpp>

Class Description

+ Examples:

Definition at line 1135 of file pugixml.hpp.

Public Types

enum  type_t { type_unsorted, type_sorted, type_sorted_reverse }
 
typedef const xpath_nodeconst_iterator
 

Public Member Functions

 xpath_node_set ()
 
 xpath_node_set (const_iterator begin, const_iterator end, type_t type=type_unsorted)
 
 ~xpath_node_set ()
 
 xpath_node_set (const xpath_node_set &ns)
 
xpath_node_setoperator= (const xpath_node_set &ns)
 
type_t type () const
 
size_t size () const
 
const xpath_nodeoperator[] (size_t index) const
 
const_iterator begin () const
 
const_iterator end () const
 
void sort (bool reverse=false)
 
xpath_node first () const
 
bool empty () const
 

Member Typedef Documentation

typedef const xpath_node* const_iterator

Definition at line 1147 of file pugixml.hpp.

Member Enumeration Documentation

enum type_t
Enumerator
type_unsorted 
type_sorted 
type_sorted_reverse 

Definition at line 1139 of file pugixml.hpp.

1140  {
1141  type_unsorted, // Not ordered
1142  type_sorted, // Sorted by document order (ascending)
1143  type_sorted_reverse // Sorted by document order (descending)
1144  };

Constructor & Destructor Documentation

xpath_node_set ( const xpath_node_set ns)

Member Function Documentation

bool empty ( ) const
xpath_node first ( ) const
xpath_node_set& operator= ( const xpath_node_set ns)
const xpath_node& operator[] ( size_t  index) const
void sort ( bool  reverse = false)
type_t type ( ) const

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