]> git.decadent.org.uk Git - videolink.git/blobdiff - linkiterator.hpp
Renamed various types to fit lower_case_with_underscores convention.
[videolink.git] / linkiterator.hpp
diff --git a/linkiterator.hpp b/linkiterator.hpp
deleted file mode 100644 (file)
index 2f93a2f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
-// See the file "COPYING" for licence details.
-
-#ifndef INC_LINKITERATOR_HPP
-#define INC_LINKITERATOR_HPP
-
-#include <iterator>
-
-#include <nsCOMPtr.h>
-#include <nsIDOMHTMLCollection.h>
-#include <nsIDOMNode.h>
-
-class nsIDOMDocument;
-
-class LinkIterator
-    : public std::iterator<std::input_iterator_tag, nsCOMPtr<nsIDOMNode>,
-                          void, void, void>
-{
-public:
-    LinkIterator();
-    explicit LinkIterator(nsIDOMDocument * document);
-
-    already_AddRefed<nsIDOMNode> operator*() const;
-    LinkIterator & operator++();
-    bool operator==(const LinkIterator &) const;
-    bool operator!=(const LinkIterator & other) const
-       {
-           return !(*this == other);
-       }
-
-private:
-    nsCOMPtr<nsIDOMHTMLCollection> collection_;
-    unsigned int index_, length_;
-};
-
-#endif // !INC_LINKITERATOR_HPP