* 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
This commit is contained in:
Axel Dörfler
2007-08-01 14:28:50 +00:00
parent 7fe764cce5
commit 5102d49461
@@ -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;