ReactOS 0.4.16-dev-136-g52192f1
tinyxml2::XMLConstHandle Class Reference

#include <tinyxml2.h>

Collaboration diagram for tinyxml2::XMLConstHandle:

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 *name=0) const
 
const XMLConstHandle LastChild () const
 
const XMLConstHandle LastChildElement (const char *name=0) const
 
const XMLConstHandle PreviousSibling () const
 
const XMLConstHandle PreviousSiblingElement (const char *name=0) const
 
const XMLConstHandle NextSibling () const
 
const XMLConstHandle NextSiblingElement (const char *name=0) const
 
const XMLNodeToNode () const
 
const XMLElementToElement () const
 
const XMLTextToText () const
 
const XMLUnknownToUnknown () const
 
const XMLDeclarationToDeclaration () const
 

Private Attributes

const XMLNode_node
 

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 1872 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ XMLConstHandle() [1/3]

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

Definition at line 1875 of file tinyxml2.h.

1875 {
1876 _node = node;
1877 }
const XMLNode * _node
Definition: tinyxml2.h:1933
Definition: dlist.c:348

◆ XMLConstHandle() [2/3]

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

Definition at line 1878 of file tinyxml2.h.

1878 {
1879 _node = &node;
1880 }

◆ XMLConstHandle() [3/3]

tinyxml2::XMLConstHandle::XMLConstHandle ( const XMLConstHandle ref)
inline

Definition at line 1881 of file tinyxml2.h.

1881 {
1882 _node = ref._node;
1883 }
Definition: send.c:48

Member Function Documentation

◆ FirstChild()

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

Definition at line 1890 of file tinyxml2.h.

1890 {
1891 return XMLConstHandle( _node ? _node->FirstChild() : 0 );
1892 }
XMLConstHandle(const XMLNode *node)
Definition: tinyxml2.h:1875
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
Definition: tinyxml2.h:705

◆ FirstChildElement()

const XMLConstHandle tinyxml2::XMLConstHandle::FirstChildElement ( const char name = 0) const
inline

Definition at line 1893 of file tinyxml2.h.

1893 {
1894 return XMLConstHandle( _node ? _node->FirstChildElement( name ) : 0 );
1895 }
const XMLElement * FirstChildElement(const char *name=0) const
Definition: tinyxml2.cpp:876
Definition: name.c:39

◆ LastChild()

const XMLConstHandle tinyxml2::XMLConstHandle::LastChild ( ) const
inline

Definition at line 1896 of file tinyxml2.h.

1896 {
1897 return XMLConstHandle( _node ? _node->LastChild() : 0 );
1898 }
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
Definition: tinyxml2.h:723

◆ LastChildElement()

const XMLConstHandle tinyxml2::XMLConstHandle::LastChildElement ( const char name = 0) const
inline

Definition at line 1899 of file tinyxml2.h.

1899 {
1900 return XMLConstHandle( _node ? _node->LastChildElement( name ) : 0 );
1901 }
const XMLElement * LastChildElement(const char *name=0) const
Definition: tinyxml2.cpp:890

◆ NextSibling()

const XMLConstHandle tinyxml2::XMLConstHandle::NextSibling ( ) const
inline

Definition at line 1908 of file tinyxml2.h.

1908 {
1909 return XMLConstHandle( _node ? _node->NextSibling() : 0 );
1910 }
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
Definition: tinyxml2.h:757

◆ NextSiblingElement()

const XMLConstHandle tinyxml2::XMLConstHandle::NextSiblingElement ( const char name = 0) const
inline

Definition at line 1911 of file tinyxml2.h.

1911 {
1912 return XMLConstHandle( _node ? _node->NextSiblingElement( name ) : 0 );
1913 }
const XMLElement * NextSiblingElement(const char *name=0) const
Get the next (right) sibling element of this node, with an optionally supplied name.
Definition: tinyxml2.cpp:904

◆ operator=()

XMLConstHandle & tinyxml2::XMLConstHandle::operator= ( const XMLConstHandle ref)
inline

Definition at line 1885 of file tinyxml2.h.

1885 {
1886 _node = ref._node;
1887 return *this;
1888 }

◆ PreviousSibling()

const XMLConstHandle tinyxml2::XMLConstHandle::PreviousSibling ( ) const
inline

Definition at line 1902 of file tinyxml2.h.

1902 {
1903 return XMLConstHandle( _node ? _node->PreviousSibling() : 0 );
1904 }
const XMLNode * PreviousSibling() const
Get the previous (left) sibling node of this node.
Definition: tinyxml2.h:741

◆ PreviousSiblingElement()

const XMLConstHandle tinyxml2::XMLConstHandle::PreviousSiblingElement ( const char name = 0) const
inline

Definition at line 1905 of file tinyxml2.h.

1905 {
1907 }
const XMLElement * PreviousSiblingElement(const char *name=0) const
Get the previous (left) sibling element of this node, with an optionally supplied name.
Definition: tinyxml2.cpp:917

◆ ToDeclaration()

const XMLDeclaration * tinyxml2::XMLConstHandle::ToDeclaration ( ) const
inline

Definition at line 1928 of file tinyxml2.h.

1928 {
1929 return ( ( _node == 0 ) ? 0 : _node->ToDeclaration() );
1930 }
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition: tinyxml2.h:647

◆ ToElement()

const XMLElement * tinyxml2::XMLConstHandle::ToElement ( ) const
inline

Definition at line 1919 of file tinyxml2.h.

1919 {
1920 return ( ( _node == 0 ) ? 0 : _node->ToElement() );
1921 }
virtual XMLElement * ToElement()
Safely cast to an Element, or null.
Definition: tinyxml2.h:631

◆ ToNode()

const XMLNode * tinyxml2::XMLConstHandle::ToNode ( ) const
inline

Definition at line 1916 of file tinyxml2.h.

1916 {
1917 return _node;
1918 }

◆ ToText()

const XMLText * tinyxml2::XMLConstHandle::ToText ( ) const
inline

Definition at line 1922 of file tinyxml2.h.

1922 {
1923 return ( ( _node == 0 ) ? 0 : _node->ToText() );
1924 }
virtual XMLText * ToText()
Safely cast to Text, or null.
Definition: tinyxml2.h:635

◆ ToUnknown()

const XMLUnknown * tinyxml2::XMLConstHandle::ToUnknown ( ) const
inline

Definition at line 1925 of file tinyxml2.h.

1925 {
1926 return ( ( _node == 0 ) ? 0 : _node->ToUnknown() );
1927 }
virtual XMLUnknown * ToUnknown()
Safely cast to an Unknown, or null.
Definition: tinyxml2.h:651

Member Data Documentation

◆ _node

const XMLNode* tinyxml2::XMLConstHandle::_node
private

Definition at line 1933 of file tinyxml2.h.


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