From 74139ad518678b6ba69b69b702514c92bf74593e Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 7 Apr 1993 11:55:22 +0000 Subject: Added operator ++ to ListIterOf --- utils/List.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils') 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 & l) : CcuListIter (l) { } inline CcuListIterOf& operator = (const CcuListOf & 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); } }; -- cgit v1.1