1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_CHILDITERATOR_HPP
5 #define INC_CHILDITERATOR_HPP
10 #include <nsIDOMNode.h>
13 : public std::iterator<std::input_iterator_tag, nsCOMPtr<nsIDOMNode>,
18 explicit ChildIterator(nsIDOMNode * node);
21 already_AddRefed<nsIDOMNode> operator*() const;
22 ChildIterator & operator++();
23 bool operator==(const ChildIterator &) const;
24 bool operator!=(const ChildIterator & other) const
26 return !(*this == other);
33 #endif // !INC_CHILDITERATOR_HPP