Blender  V3.3
Iterator.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #include <iostream>
10 #include <string>
11 
12 #ifdef WITH_CXX_GUARDEDALLOC
13 # include "MEM_guardedalloc.h"
14 #endif
15 
16 using namespace std;
17 
18 namespace Freestyle {
19 
20 class Iterator {
21  public:
22  virtual ~Iterator()
23  {
24  }
25 
26  virtual string getExactTypeName() const
27  {
28  return "Iterator";
29  }
30 
31  virtual int increment()
32  {
33  cerr << "Warning: increment() not implemented" << endl;
34  return 0;
35  }
36 
37  virtual int decrement()
38  {
39  cerr << "Warning: decrement() not implemented" << endl;
40  return 0;
41  }
42 
43  virtual bool isBegin() const
44  {
45  cerr << "Warning: isBegin() not implemented" << endl;
46  return false;
47  }
48 
49  virtual bool isEnd() const
50  {
51  cerr << "Warning: isEnd() not implemented" << endl;
52  return false;
53  }
54 
55 #ifdef WITH_CXX_GUARDEDALLOC
56  MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Iterator")
57 #endif
58 };
59 
60 } /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual bool isBegin() const
Definition: Iterator.h:43
virtual int decrement()
Definition: Iterator.h:37
virtual string getExactTypeName() const
Definition: Iterator.h:26
virtual int increment()
Definition: Iterator.h:31
virtual bool isEnd() const
Definition: Iterator.h:49
virtual ~Iterator()
Definition: Iterator.h:22
inherits from class Rep
Definition: AppCanvas.cpp:18