summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorchatty1993-04-07 11:55:22 +0000
committerchatty1993-04-07 11:55:22 +0000
commit74139ad518678b6ba69b69b702514c92bf74593e (patch)
tree155419d14102506f91fc6f053af6762fa818490a /utils
parent1228128bdf42673bde26edf6022b6a93df37b371 (diff)
downloadivy-league-74139ad518678b6ba69b69b702514c92bf74593e.zip
ivy-league-74139ad518678b6ba69b69b702514c92bf74593e.tar.gz
ivy-league-74139ad518678b6ba69b69b702514c92bf74593e.tar.bz2
ivy-league-74139ad518678b6ba69b69b702514c92bf74593e.tar.xz
Added operator ++ to ListIterOf
Diffstat (limited to 'utils')
-rw-r--r--utils/List.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/List.h b/utils/List.h
index 81ed6ba..869f220 100644
--- a/utils/List.h
+++ b/utils/List.h
@@ -3,7 +3,7 @@
*
* by Stephane Chatty
*
- * Copyright 1992
+ * Copyright 1992-1993
* Centre d'Etudes de la Navigation Aerienne (CENA)
*
* plain and generic lists (original ideas by Yves Berteaud)
@@ -108,8 +108,8 @@ inline CcuListIter& operator = (const CcuListIter& li) { TheList = li.TheList; C
#ifndef CPLUS_BUG16
CcuListIter& operator ++ (int);
#endif
- int Find (CcuListItem*);
CcuListItem* operator * () const;
+ int Find (CcuListItem*);
inline listiter_status GetStatus () const { return StatusFlag; }
inline operator int () const { return StatusFlag == Normal; }
};
@@ -146,6 +146,7 @@ public:
inline CcuListIterOf (const CcuListOf <ITEM>& l) : CcuListIter (l) { }
inline CcuListIterOf& operator = (const CcuListOf <ITEM>& l) { return (CcuListIterOf&) CcuListIter::operator = (l); }
inline CcuListIterOf& operator = (const CcuListIterOf& li) { return (CcuListIterOf&) CcuListIter::operator = (li); }
+inline CcuListIterOf& operator ++ () { return (CcuListIterOf&) CcuListIter::operator ++ (); }
inline ITEM* operator * () const { return (ITEM*) CcuListIter::operator * (); }
inline int Find (ITEM* it) { return CcuListIter::Find (it); }
};