* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user