Simbody
Public Member Functions | Protected Member Functions | Friends

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...

#include <Xml.h>

Inheritance diagram for SimTK::Xml::node_iterator:

List of all members.

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.
 ~node_iterator ()
 An iterator destructor never deletes the object to which it refers.
node_iteratoroperator= (const node_iterator &src)
 Copy assignment takes an node_iterator that can be const, but that still allows writing to the Node.
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) [inline, explicit]
SimTK::Xml::node_iterator::node_iterator ( Node node,
NodeType  allowed = AnyNodes 
) [inline, explicit]
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 
) [inline, explicit, protected]

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++ ( )

Reimplemented in SimTK::Xml::element_iterator.

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

Reimplemented in SimTK::Xml::element_iterator.

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

Reimplemented in SimTK::Xml::element_iterator.

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

Reimplemented in SimTK::Xml::element_iterator.

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

Reimplemented in SimTK::Xml::element_iterator.

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

Reimplemented in SimTK::Xml::element_iterator.

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) [inline, protected]

Friends And Related Function Documentation

friend class Xml [friend]

Reimplemented in SimTK::Xml::element_iterator.

friend class Xml::Node [friend]
friend class Xml::Element [friend]

Reimplemented in SimTK::Xml::element_iterator.

friend class Xml::element_iterator [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines