summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hwpfilter/source/list.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx
index c4df08e0a0f3..45ce0708be6f 100644
--- a/hwpfilter/source/list.hxx
+++ b/hwpfilter/source/list.hxx
@@ -95,6 +95,8 @@ public:
// bug-compatible with original LinkedList.h/cxx: Ignore parameter!
void operator++( int ); /// advance iterator by one step (ignore n !!!)
void operator--( int ); /// go one step backwards (ignore n !!!)
+ void operator++(); /// advance iterator by one step
+ void operator--(); /// go one step backwards
private:
bool valid();
@@ -275,6 +277,20 @@ void LinkedListIterator<T>::operator--( int )
}
template<class T>
+void LinkedListIterator<T>::operator++()
+{
+ ASSERT( mpList != NULL );
+ mnPosition ++;
+}
+
+template<class T>
+void LinkedListIterator<T>::operator--()
+{
+ ASSERT( mpList != NULL );
+ mnPosition --;
+}
+
+template<class T>
bool LinkedListIterator<T>::valid()
{
return mpList != NULL