pugi::xml_node_iterator Class Reference

Inheritance diagram for pugi::xml_node_iterator:

Inheritance graph
[legend]
Collaboration diagram for pugi::xml_node_iterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Child node iterator.

It's a bidirectional iterator with value type 'xml_node'.


Public Member Functions

 xml_node_iterator ()
 Default ctor.
 xml_node_iterator (const xml_node &node)
 Initializing ctor.
 xml_node_iterator (xml_node_struct *ref, xml_node_struct *prev)
 Initializing ctor (for past-the-end).
bool operator== (const xml_node_iterator &rhs) const
 Check if this iterator is equal to rhs.
bool operator!= (const xml_node_iterator &rhs) const
 Check if this iterator is not equal to rhs.
xml_nodeoperator * ()
 Dereferencing operator.
xml_nodeoperator-> ()
 Member access operator.
const xml_node_iteratoroperator++ ()
 Pre-increment operator.
xml_node_iterator operator++ (int)
 Post-increment operator.
const xml_node_iteratoroperator-- ()
 Pre-decrement operator.
xml_node_iterator operator-- (int)
 Post-decrement operator.

Friends

class xml_node


Constructor & Destructor Documentation

pugi::xml_node_iterator::xml_node_iterator const xml_node node  ) 
 

Initializing ctor.

Parameters:
node - node that iterator will point at

pugi::xml_node_iterator::xml_node_iterator xml_node_struct *  ref,
xml_node_struct *  prev
 

Initializing ctor (for past-the-end).

Parameters:
ref - should be 0
prev - previous node


Member Function Documentation

bool pugi::xml_node_iterator::operator== const xml_node_iterator rhs  )  const
 

Check if this iterator is equal to rhs.

Parameters:
rhs - other iterator
Returns:
comparison result

bool pugi::xml_node_iterator::operator!= const xml_node_iterator rhs  )  const
 

Check if this iterator is not equal to rhs.

Parameters:
rhs - other iterator
Returns:
comparison result

xml_node& pugi::xml_node_iterator::operator *  ) 
 

Dereferencing operator.

Returns:
reference to the node iterator points at

xml_node* pugi::xml_node_iterator::operator->  ) 
 

Member access operator.

Returns:
poitner to the node iterator points at

const xml_node_iterator& pugi::xml_node_iterator::operator++  ) 
 

Pre-increment operator.

Returns:
self

xml_node_iterator pugi::xml_node_iterator::operator++ int   ) 
 

Post-increment operator.

Returns:
old value

const xml_node_iterator& pugi::xml_node_iterator::operator--  ) 
 

Pre-decrement operator.

Returns:
self

xml_node_iterator pugi::xml_node_iterator::operator-- int   ) 
 

Post-decrement operator.

Returns:
old value


Generated on Sun Nov 8 22:15:20 2009 for pugixml by  doxygen 1.4.6-NO