antioch-0.4.0
List of all members | Public Member Functions | Private Attributes
tinyxml2::XMLConstHandle Class Reference

#include <tinyxml2.h>

Public Member Functions

 XMLConstHandle (const XMLNode *_node)
 
 XMLConstHandle (const XMLNode &_node)
 
 XMLConstHandle (const XMLConstHandle &ref)
 
XMLConstHandleoperator= (const XMLConstHandle &ref)
 
const XMLConstHandle FirstChild () const
 
const XMLConstHandle FirstChildElement (const char *value=0) const
 
const XMLConstHandle LastChild () const
 
const XMLConstHandle LastChildElement (const char *_value=0) const
 
const XMLConstHandle PreviousSibling () const
 
const XMLConstHandle PreviousSiblingElement (const char *_value=0) const
 
const XMLConstHandle NextSibling () const
 
const XMLConstHandle NextSiblingElement (const char *_value=0) const
 
const XMLNodeToNode () const
 
const XMLElementToElement () const
 
const XMLTextToText () const
 
const XMLUnknownToUnknown () const
 
const XMLDeclarationToDeclaration () const
 

Private Attributes

const XMLNodenode
 

Detailed Description

A variant of the XMLHandle class for working with const XMLNodes and Documents. It is the same in all regards, except for the 'const' qualifiers. See XMLHandle for API.

Definition at line 1335 of file tinyxml2.h.

Constructor & Destructor Documentation

tinyxml2::XMLConstHandle::XMLConstHandle ( const XMLNode _node)
inline
tinyxml2::XMLConstHandle::XMLConstHandle ( const XMLNode _node)
inline

Definition at line 1339 of file tinyxml2.h.

References node.

1339 { node = &_node; }
const XMLNode * node
Definition: tinyxml2.h:1361
tinyxml2::XMLConstHandle::XMLConstHandle ( const XMLConstHandle ref)
inline

Definition at line 1340 of file tinyxml2.h.

References node.

1340 { node = ref.node; }
const XMLNode * node
Definition: tinyxml2.h:1361

Member Function Documentation

const XMLConstHandle tinyxml2::XMLConstHandle::FirstChild ( ) const
inline

Definition at line 1344 of file tinyxml2.h.

References tinyxml2::XMLNode::FirstChild(), node, and XMLConstHandle().

1344 { return XMLConstHandle( node ? node->FirstChild() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
Definition: tinyxml2.h:496
const XMLConstHandle tinyxml2::XMLConstHandle::FirstChildElement ( const char *  value = 0) const
inline

Definition at line 1345 of file tinyxml2.h.

References tinyxml2::XMLNode::FirstChildElement(), node, and XMLConstHandle().

1345 { return XMLConstHandle( node ? node->FirstChildElement( value ) : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLElement * FirstChildElement(const char *value=0) const
Definition: tinyxml2_imp.h:740
const XMLConstHandle tinyxml2::XMLConstHandle::LastChild ( ) const
inline

Definition at line 1346 of file tinyxml2.h.

References tinyxml2::XMLNode::LastChild(), node, and XMLConstHandle().

1346 { return XMLConstHandle( node ? node->LastChild() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
Definition: tinyxml2.h:505
const XMLConstHandle tinyxml2::XMLConstHandle::LastChildElement ( const char *  _value = 0) const
inline

Definition at line 1347 of file tinyxml2.h.

References tinyxml2::XMLNode::LastChildElement(), node, and XMLConstHandle().

1347 { return XMLConstHandle( node ? node->LastChildElement( _value ) : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLElement * LastChildElement(const char *value=0) const
Definition: tinyxml2_imp.h:755
const XMLConstHandle tinyxml2::XMLConstHandle::NextSibling ( ) const
inline

Definition at line 1350 of file tinyxml2.h.

References tinyxml2::XMLNode::NextSibling(), node, and XMLConstHandle().

1350 { return XMLConstHandle( node ? node->NextSibling() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
Definition: tinyxml2.h:523
const XMLConstHandle tinyxml2::XMLConstHandle::NextSiblingElement ( const char *  _value = 0) const
inline

Definition at line 1351 of file tinyxml2.h.

References tinyxml2::XMLNode::NextSiblingElement(), node, and XMLConstHandle().

1351 { return XMLConstHandle( node ? node->NextSiblingElement( _value ) : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLElement * NextSiblingElement(const char *value=0) const
Get the next (right) sibling element of this node, with an opitionally supplied name.
Definition: tinyxml2_imp.h:770
XMLConstHandle& tinyxml2::XMLConstHandle::operator= ( const XMLConstHandle ref)
inline

Definition at line 1342 of file tinyxml2.h.

References node.

1342 { node = ref.node; return *this; }
const XMLNode * node
Definition: tinyxml2.h:1361
const XMLConstHandle tinyxml2::XMLConstHandle::PreviousSibling ( ) const
inline

Definition at line 1348 of file tinyxml2.h.

References node, tinyxml2::XMLNode::PreviousSibling(), and XMLConstHandle().

1348 { return XMLConstHandle( node ? node->PreviousSibling() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
const XMLNode * PreviousSibling() const
Get the previous (left) sibling node of this node.
Definition: tinyxml2.h:515
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLConstHandle tinyxml2::XMLConstHandle::PreviousSiblingElement ( const char *  _value = 0) const
inline

Definition at line 1349 of file tinyxml2.h.

References node, tinyxml2::XMLNode::PreviousSiblingElement(), and XMLConstHandle().

1349 { return XMLConstHandle( node ? node->PreviousSiblingElement( _value ) : 0 ); }
const XMLElement * PreviousSiblingElement(const char *value=0) const
Get the previous (left) sibling element of this node, with an opitionally supplied name...
Definition: tinyxml2_imp.h:784
const XMLNode * node
Definition: tinyxml2.h:1361
XMLConstHandle(const XMLNode *_node)
Definition: tinyxml2.h:1338
const XMLDeclaration* tinyxml2::XMLConstHandle::ToDeclaration ( ) const
inline

Definition at line 1358 of file tinyxml2.h.

References node, and tinyxml2::XMLNode::ToDeclaration().

1358 { return ( ( node && node->ToDeclaration() ) ? node->ToDeclaration() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition: tinyxml2.h:463
const XMLElement* tinyxml2::XMLConstHandle::ToElement ( ) const
inline

Definition at line 1355 of file tinyxml2.h.

References node, and tinyxml2::XMLNode::ToElement().

1355 { return ( ( node && node->ToElement() ) ? node->ToElement() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
virtual XMLElement * ToElement()
Safely cast to an Element, or null.
Definition: tinyxml2.h:459
const XMLNode* tinyxml2::XMLConstHandle::ToNode ( ) const
inline

Definition at line 1354 of file tinyxml2.h.

References node.

1354 { return node; }
const XMLNode * node
Definition: tinyxml2.h:1361
const XMLText* tinyxml2::XMLConstHandle::ToText ( ) const
inline

Definition at line 1356 of file tinyxml2.h.

References node, and tinyxml2::XMLNode::ToText().

1356 { return ( ( node && node->ToText() ) ? node->ToText() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
virtual XMLText * ToText()
Safely cast to Text, or null.
Definition: tinyxml2.h:460
const XMLUnknown* tinyxml2::XMLConstHandle::ToUnknown ( ) const
inline

Definition at line 1357 of file tinyxml2.h.

References node, and tinyxml2::XMLNode::ToUnknown().

1357 { return ( ( node && node->ToUnknown() ) ? node->ToUnknown() : 0 ); }
const XMLNode * node
Definition: tinyxml2.h:1361
virtual XMLUnknown * ToUnknown()
Safely cast to an Unknown, or null.
Definition: tinyxml2.h:464

Member Data Documentation

const XMLNode* tinyxml2::XMLConstHandle::node
private

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

Generated on Thu Jul 7 2016 11:09:52 for antioch-0.4.0 by  doxygen 1.8.8