UniSet 2.41.2
Класс uniset::UniXML_iterator

Открытые типы

using iterator_category = std::bidirectional_iterator_tag
using value_type = xmlNode
using difference_type = ptrdiff_t
using pointer = const value_type*
using reference = const value_type&

Открытые члены

 UniXML_iterator (xmlNode *node) noexcept
std::string getProp2 (const std::string &name, const std::string &defval="") const noexcept
std::string getProp (const std::string &name) const noexcept
int getIntProp (const std::string &name) const noexcept
int getPIntProp (const std::string &name, int def) const noexcept
 if value if not positive ( <= 0 ), returns def
void setProp (const std::string &name, const std::string &text) noexcept
bool findName (const std::string &node, const std::string &searchname, bool deepfind=true) noexcept
bool find (const std::string &searchnode, bool deepfind=true) noexcept
xmlNode * findX (xmlNode *root, const std::string &searchnode, bool deepfind=true) const noexcept
bool goNext () noexcept
bool goThrowNext () noexcept
bool goPrev () noexcept
bool canPrev () const noexcept
bool canNext () const noexcept
UniXML_iterator & operator+ (int) noexcept
UniXML_iterator operator++ (int) noexcept
UniXML_iterator & operator+= (int) noexcept
UniXML_iterator & operator++ () noexcept
UniXML_iterator & operator- (int) noexcept
UniXML_iterator operator-- (int) noexcept
UniXML_iterator & operator-- () noexcept
UniXML_iterator & operator-= (int) noexcept
bool goParent () noexcept
bool goChildren () noexcept
xmlNode * getCurrent () noexcept
const std::string getName () const noexcept
const std::string getContent () const noexcept
 operator xmlNode * () const noexcept
void goBegin () noexcept
void goEnd () noexcept
UniXMLPropList getPropList () const

Методы

◆ getPIntProp()

int UniXML_iterator::getPIntProp ( const std::string & name,
int def ) const
noexcept

if value if not positive ( <= 0 ), returns def

◆ goChildren()

bool UniXML_iterator::goChildren ( )
noexcept

Перейти на один уровень ниже

Заметки
Если перейти не удалось, итератор остаётся указывать на прежний узел

◆ goNext()

bool UniXML_iterator::goNext ( )
noexcept

Перейти к следующему узлу. Возвращает false, если некуда перейти

◆ goParent()

bool UniXML_iterator::goParent ( )
noexcept

Перейти на один уровень выше

Заметки
Если перейти не удалось, итератор остаётся указывать на прежний узел

◆ goPrev()

bool UniXML_iterator::goPrev ( )
noexcept

Перейти к предыдущему узлу

◆ goThrowNext()

bool UniXML_iterator::goThrowNext ( )
noexcept

Перейти насквозь к следующему узлу. Возвращает false, если некуда перейти