Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
pugi::xml_attribute_iterator Class Reference

#include <pugixml.hpp>

Public Types

typedef ptrdiff_t difference_type
typedef xml_attribute value_type
typedef xml_attributepointer
typedef xml_attributereference
typedef std::bidirectional_iterator_tag iterator_category

Public Member Functions

 xml_attribute_iterator ()
 xml_attribute_iterator (const xml_attribute &attr, const xml_node &parent)
bool operator== (const xml_attribute_iterator &rhs) const
bool operator!= (const xml_attribute_iterator &rhs) const
xml_attributeoperator* () const
xml_attributeoperator-> () const
xml_attribute_iterator & operator++ ()
xml_attribute_iterator operator++ (int)
xml_attribute_iterator & operator-- ()
xml_attribute_iterator operator-- (int)

Friends

class xml_node

Detailed Description

Definition at line 869 of file pugixml.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 881 of file pugixml.hpp.

◆ iterator_category

typedef std::bidirectional_iterator_tag pugi::xml_attribute_iterator::iterator_category

Definition at line 887 of file pugixml.hpp.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ xml_attribute_iterator() [1/2]

PUGI__FN pugi::xml_attribute_iterator::xml_attribute_iterator ( )

Definition at line 6897 of file pugixml.cc.

6898 {
6899 }

◆ xml_attribute_iterator() [2/2]

PUGI__FN pugi::xml_attribute_iterator::xml_attribute_iterator ( const xml_attribute & attr,
const xml_node & parent )

Definition at line 6901 of file pugixml.cc.

6901 : _wrap(attr), _parent(parent)
6902 {
6903 }

Member Function Documentation

◆ operator!=()

PUGI__FN bool pugi::xml_attribute_iterator::operator!= ( const xml_attribute_iterator & rhs) const

Definition at line 6914 of file pugixml.cc.

6915 {
6916 return _wrap._attr != rhs._wrap._attr || _parent._root != rhs._parent._root;
6917 }

◆ operator*()

PUGI__FN xml_attribute & pugi::xml_attribute_iterator::operator* ( ) const

Definition at line 6919 of file pugixml.cc.

6920 {
6921 assert(_wrap._attr);
6922 return _wrap;
6923 }

◆ operator++() [1/2]

PUGI__FN xml_attribute_iterator & pugi::xml_attribute_iterator::operator++ ( )

Definition at line 6931 of file pugixml.cc.

6932 {
6933 assert(_wrap._attr);
6934 _wrap._attr = _wrap._attr->next_attribute;
6935 return *this;
6936 }

◆ operator++() [2/2]

PUGI__FN xml_attribute_iterator pugi::xml_attribute_iterator::operator++ ( int )

Definition at line 6938 of file pugixml.cc.

6939 {
6940 xml_attribute_iterator temp = *this;
6941 ++*this;
6942 return temp;
6943 }

◆ operator--() [1/2]

PUGI__FN xml_attribute_iterator & pugi::xml_attribute_iterator::operator-- ( )

Definition at line 6945 of file pugixml.cc.

6946 {
6947 _wrap = _wrap._attr ? _wrap.previous_attribute() : _parent.last_attribute();
6948 return *this;
6949 }

◆ operator--() [2/2]

PUGI__FN xml_attribute_iterator pugi::xml_attribute_iterator::operator-- ( int )

Definition at line 6951 of file pugixml.cc.

6952 {
6953 xml_attribute_iterator temp = *this;
6954 --*this;
6955 return temp;
6956 }

◆ operator->()

PUGI__FN xml_attribute * pugi::xml_attribute_iterator::operator-> ( ) const

Definition at line 6925 of file pugixml.cc.

6926 {
6927 assert(_wrap._attr);
6928 return const_cast<xml_attribute*>(&_wrap); // BCC5 workaround
6929 }

◆ operator==()

PUGI__FN bool pugi::xml_attribute_iterator::operator== ( const xml_attribute_iterator & rhs) const

Definition at line 6909 of file pugixml.cc.

6910 {
6911 return _wrap._attr == rhs._wrap._attr && _parent._root == rhs._parent._root;
6912 }

◆ xml_node

friend class xml_node
friend

Definition at line 871 of file pugixml.hpp.

Referenced by xml_attribute_iterator(), and xml_node.


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