From 5102d494616576ab7bacfdae9bf9f4fa4316d6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 1 Aug 2007 14:28:50 +0000 Subject: [PATCH] * Added the default constructor to the Iterator class. * Added a Current() method to the same class that returns the current element again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21779 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/util/DoublyLinkedList.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/headers/private/kernel/util/DoublyLinkedList.h b/headers/private/kernel/util/DoublyLinkedList.h index 228d581854..1bfecc1d60 100644 --- a/headers/private/kernel/util/DoublyLinkedList.h +++ b/headers/private/kernel/util/DoublyLinkedList.h @@ -123,6 +123,10 @@ public: Rewind(); } + Iterator() + { + } + Iterator(const Iterator &other) { *this = other; @@ -141,6 +145,11 @@ public: return fCurrent; } + Element *Current() + { + return fCurrent; + } + Element *Remove() { Element *element = fCurrent;