Blender
V3.3
source
blender
blenlib
intern
resource_scope.cc
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include "
BLI_resource_scope.hh
"
4
5
namespace
blender
{
6
7
ResourceScope::ResourceScope
() =
default
;
8
9
ResourceScope::~ResourceScope
()
10
{
11
/* Free in reversed order. */
12
for
(
int64_t
i = resources_.
size
(); i--;) {
13
ResourceData &
data
= resources_[i];
14
data
.free(
data
.data);
15
}
16
}
17
18
}
// namespace blender
BLI_resource_scope.hh
data
data
Definition:
bmesh_operator_api_inline.h:157
blender::ResourceScope::~ResourceScope
~ResourceScope()
Definition:
resource_scope.cc:9
blender::ResourceScope::ResourceScope
ResourceScope()
blender::Vector::size
int64_t size() const
Definition:
BLI_vector.hh:694
blender
Definition:
BKE_action.hh:16
int64_t
__int64 int64_t
Definition:
stdint.h:89
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1