Blender V5.0
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
10
11#include <iostream>
12#include <string>
13
14#include "MEM_guardedalloc.h"
15
16using namespace std;
17
18namespace Freestyle {
19
20class Iterator {
21 public:
22 virtual ~Iterator() {}
23
24 virtual string getExactTypeName() const
25 {
26 return "Iterator";
27 }
28
29 virtual int increment()
30 {
31 cerr << "Warning: increment() not implemented" << endl;
32 return 0;
33 }
34
35 virtual int decrement()
36 {
37 cerr << "Warning: decrement() not implemented" << endl;
38 return 0;
39 }
40
41 virtual bool isBegin() const
42 {
43 cerr << "Warning: isBegin() not implemented" << endl;
44 return false;
45 }
46
47 virtual bool isEnd() const
48 {
49 cerr << "Warning: isEnd() not implemented" << endl;
50 return false;
51 }
52
53 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Iterator")
54};
55
56} /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual bool isBegin() const
Definition Iterator.h:41
virtual int decrement()
Definition Iterator.h:35
virtual string getExactTypeName() const
Definition Iterator.h:24
virtual int increment()
Definition Iterator.h:29
virtual bool isEnd() const
Definition Iterator.h:47
virtual ~Iterator()
Definition Iterator.h:22
inherits from class Rep
Definition AppCanvas.cpp:20