Simbody  3.7
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 Document
 
class Node
 
class Element
 
class 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

◆ node_iterator() [1/4]

SimTK::Xml::node_iterator::node_iterator ( NodeType  allowed = AnyNodes)
inlineexplicit

◆ node_iterator() [2/4]

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

◆ node_iterator() [3/4]

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.

◆ ~node_iterator()

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

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

◆ node_iterator() [4/4]

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

Member Function Documentation

◆ operator=()

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.

◆ operator++() [1/2]

node_iterator& SimTK::Xml::node_iterator::operator++ ( )

◆ operator++() [2/2]

node_iterator SimTK::Xml::node_iterator::operator++ ( int  )

◆ operator--() [1/2]

node_iterator& SimTK::Xml::node_iterator::operator-- ( )

◆ operator--() [2/2]

node_iterator SimTK::Xml::node_iterator::operator-- ( int  )

◆ operator*() [1/2]

Node& SimTK::Xml::node_iterator::operator* ( )
inline

◆ operator->() [1/2]

Node* SimTK::Xml::node_iterator::operator-> ( )
inline

◆ operator*() [2/2]

Node& SimTK::Xml::node_iterator::operator* ( ) const
inline

◆ operator->() [2/2]

Node* SimTK::Xml::node_iterator::operator-> ( ) const
inline

◆ operator==()

bool SimTK::Xml::node_iterator::operator== ( const node_iterator other) const
inline

◆ operator!=()

bool SimTK::Xml::node_iterator::operator!= ( const node_iterator other) const
inline

◆ reassign()

void SimTK::Xml::node_iterator::reassign ( TiXmlNode *  tiNode)
inlineprotected

Friends And Related Function Documentation

◆ Document

friend class Document
friend

◆ Node

friend class Node
friend

◆ Element

friend class Element
friend

◆ element_iterator

friend class element_iterator
friend

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