Blender V4.3
Iterator.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include <iostream>
12#include <string>
13
14#ifdef WITH_CXX_GUARDEDALLOC
15# include "MEM_guardedalloc.h"
16#endif
17
18using namespace std;
19
20namespace Freestyle {
21
22class Iterator {
23 public:
24 virtual ~Iterator() {}
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:24
inherits from class Rep
Definition AppCanvas.cpp:20