Simbody  3.5
SimTK::Xml::node_iterator Class Reference

This is a bidirectional iterator suitable for moving forward or backward within a list of Nodes, for writable access. More...

+ Inheritance diagram for SimTK::Xml::node_iterator:

Public Member Functions

 node_iterator (NodeType allowed=AnyNodes)
 
 node_iterator (Node &node, NodeType allowed=AnyNodes)
 
 node_iterator (const node_iterator &src)
 Copy constructor takes a node_iterator that can be const, but that still allows writing to the Node. More...
 
 ~node_iterator ()
 An iterator destructor never deletes the object to which it refers. More...
 
node_iteratoroperator= (const node_iterator &src)
 Copy assignment takes an node_iterator that can be const, but that still allows writing to the Node. More...
 
node_iteratoroperator++ ()
 
node_iterator operator++ (int)
 
node_iteratoroperator-- ()
 
node_iterator operator-- (int)
 
Nodeoperator* ()
 
Nodeoperator-> ()
 
Nodeoperator* () const
 
Nodeoperator-> () const
 
bool operator== (const node_iterator &other) const
 
bool operator!= (const node_iterator &other) const
 

Protected Member Functions

 node_iterator (TiXmlNode *tiNode, NodeType allowed=AnyNodes)
 
void reassign (TiXmlNode *tiNode)
 

Friends

class Xml
 
class Xml::Node
 
class Xml::Element
 
class Xml::element_iterator
 

Detailed Description

This is a bidirectional iterator suitable for moving forward or backward within a list of Nodes, for writable access.

By default we will iterate over all nodes but you can restrict the types at construction.

Constructor & Destructor Documentation

SimTK::Xml::node_iterator::node_iterator ( NodeType  allowed = AnyNodes)
inlineexplicit
SimTK::Xml::node_iterator::node_iterator ( Node node,
NodeType  allowed = AnyNodes 
)
inlineexplicit
SimTK::Xml::node_iterator::node_iterator ( const node_iterator src)
inline

Copy constructor takes a node_iterator that can be const, but that still allows writing to the Node.

SimTK::Xml::node_iterator::~node_iterator ( )
inline

An iterator destructor never deletes the object to which it refers.

SimTK::Xml::node_iterator::node_iterator ( TiXmlNode *  tiNode,
NodeType  allowed = AnyNodes 
)
inlineexplicitprotected

Member Function Documentation

node_iterator& SimTK::Xml::node_iterator::operator= ( const node_iterator src)
inline

Copy assignment takes an node_iterator that can be const, but that still allows writing to the Node.

node_iterator& SimTK::Xml::node_iterator::operator++ ( )
node_iterator SimTK::Xml::node_iterator::operator++ ( int  )
node_iterator& SimTK::Xml::node_iterator::operator-- ( )
node_iterator SimTK::Xml::node_iterator::operator-- ( int  )
Node& SimTK::Xml::node_iterator::operator* ( )
inline
Node* SimTK::Xml::node_iterator::operator-> ( )
inline
Node& SimTK::Xml::node_iterator::operator* ( ) const
inline
Node* SimTK::Xml::node_iterator::operator-> ( ) const
inline
bool SimTK::Xml::node_iterator::operator== ( const node_iterator other) const
inline
bool SimTK::Xml::node_iterator::operator!= ( const node_iterator other) const
inline
void SimTK::Xml::node_iterator::reassign ( TiXmlNode *  tiNode)
inlineprotected

Friends And Related Function Documentation

friend class Xml
friend
friend class Xml::Node
friend
friend class Xml::Element
friend
friend class Xml::element_iterator
friend

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