Blender
V4.3
source
blender
freestyle
intern
system
PointerSequence.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
49
#include <algorithm>
50
51
#ifdef WITH_CXX_GUARDEDALLOC
52
# include "
MEM_guardedalloc.h
"
53
#endif
54
55
namespace
Freestyle
{
56
57
template
<
typename
C,
typename
T>
class
PointerSequence
:
public
C {
58
PointerSequence
(
PointerSequence
&other);
59
PointerSequence
&operator=(
PointerSequence
&other);
60
61
static
void
destroyer(T t)
62
{
63
delete
t;
64
}
65
66
public
:
67
PointerSequence
(){};
68
69
~PointerSequence
()
70
{
71
destroy
();
72
}
73
74
void
destroy
()
75
{
76
for_each(this->begin(), this->end(), destroyer);
77
}
78
79
#ifdef WITH_CXX_GUARDEDALLOC
80
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:PointerSequence"
)
81
#endif
82
};
83
84
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Freestyle::PointerSequence
Definition
PointerSequence.h:57
Freestyle::PointerSequence::~PointerSequence
~PointerSequence()
Definition
PointerSequence.h:69
Freestyle::PointerSequence::destroy
void destroy()
Definition
PointerSequence.h:74
Freestyle::PointerSequence::PointerSequence
PointerSequence()
Definition
PointerSequence.h:67
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0