45 inline auto DomChildren (
const QDomNode& parent,
const QString& tag)
49 using difference_type = ptrdiff_t;
50 using value_type = QDomElement;
51 using reference = QDomElement&;
52 using iterator_category = std::forward_iterator_tag;
59 return Elem_ == other.Elem_;
62 Iterator& operator++ ()
64 Elem_ = Elem_.nextSiblingElement (Tag_);
68 QDomElement& operator* ()
76 const Iterator Begin_;
78 auto begin ()
const {
return Begin_; }
79 auto end ()
const {
return Iterator {}; }
82 auto firstChild = parent.firstChildElement (tag);