Biorithm  1.1
 All Classes Functions Variables Typedefs Friends
myiterator.h
00001 /**************************************************************************
00002  * Copyright (c) 2004-2011 T. M. Murali                                   *
00003  *                                                                        *
00004  * This file is part of Biorithm.                                         *
00005  *                                                                        *
00006  * Biorithm is free software: you can redistribute it and/or modify       *
00007  * it under the terms of the GNU General Public License as published by   *
00008  * the Free Software Foundation, either version 3 of the License, or      *
00009  * (at your option) any later version.                                    *
00010  *                                                                        *
00011  * Biorithm is distributed in the hope that it will be useful,            *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00014  * GNU General Public License for more details.                           *
00015  *                                                                        *
00016  * You should have received a copy of the GNU General Public License      *
00017  * along with Biorithm.  If not, see <http://www.gnu.org/licenses/>.      *
00018  *                                                                        *
00019  **************************************************************************/
00020 
00028 #ifndef _MYITERATOR_H
00029 #define _MYITERATOR_H
00030 
00031 template <class T>
00032 class MyIterator
00033 {
00034 public:
00035 
00036   MyIterator()
00037     {}
00038   
00039   virtual ~MyIterator()
00040     {}
00041   
00042   virtual bool hasNext() = 0;
00043   virtual T& next() = 0;
00044 //  virtual typename T next() = 0;
00045 };
00046 
00047 
00048 #endif // _MYITERATOR_H 
 All Classes Functions Variables Typedefs Friends