Salome HOME
0955dee0d0a29a34a17de7a763317017b6f988b1
[modules/yacs.git] / src / engine_swig / IteratorPy3.hxx
1 // Copyright (C) 2006-2022  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Author: Nicolas GEIMER (EDF)
20
21 #ifndef __ITERATORPY3_HXX__
22 #define __ITERATORPY3_HXX__
23
24 template <typename U> class StopIteratorPy3 {};
25
26 template <typename U> class IteratorPy3 {
27     public:
28         IteratorPy3( typename std::map<std::string,U*>::iterator _cur, typename std::map<std::string,U*>::iterator _end) : cur(_cur), end(_end) {}
29         ~IteratorPy3() {}
30         IteratorPy3* __iter__()
31         {
32             return this;
33         }
34         typename std::map<std::string,U*>::iterator cur;
35         typename std::map<std::string,U*>::iterator end;
36 };
37
38 #endif /* __ITERATORPY3_HXX__ */
39