Blender  V2.93
Iterator.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
23 #include <iostream>
24 #include <string>
25 
26 #ifdef WITH_CXX_GUARDEDALLOC
27 # include "MEM_guardedalloc.h"
28 #endif
29 
30 using namespace std;
31 
32 namespace Freestyle {
33 
34 class Iterator {
35  public:
36  virtual ~Iterator()
37  {
38  }
39 
40  virtual string getExactTypeName() const
41  {
42  return "Iterator";
43  }
44 
45  virtual int increment()
46  {
47  cerr << "Warning: increment() not implemented" << endl;
48  return 0;
49  }
50 
51  virtual int decrement()
52  {
53  cerr << "Warning: decrement() not implemented" << endl;
54  return 0;
55  }
56 
57  virtual bool isBegin() const
58  {
59  cerr << "Warning: isBegin() not implemented" << endl;
60  return false;
61  }
62 
63  virtual bool isEnd() const
64  {
65  cerr << "Warning: isEnd() not implemented" << endl;
66  return false;
67  }
68 
69 #ifdef WITH_CXX_GUARDEDALLOC
70  MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Iterator")
71 #endif
72 };
73 
74 } /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual bool isBegin() const
Definition: Iterator.h:57
virtual int decrement()
Definition: Iterator.h:51
virtual string getExactTypeName() const
Definition: Iterator.h:40
virtual int increment()
Definition: Iterator.h:45
virtual bool isEnd() const
Definition: Iterator.h:63
virtual ~Iterator()
Definition: Iterator.h:36
inherits from class Rep
Definition: AppCanvas.cpp:32