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