Blender
V4.5
source
blender
blenlib
intern
resource_scope.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
BLI_resource_scope.hh
"
10
11
namespace
blender
{
12
13
ResourceScope::ResourceScope
() =
default
;
14
15
ResourceScope::~ResourceScope
()
16
{
17
/* Free in reversed order. */
18
for
(
int64_t
i = resources_.
size
(); i--;) {
19
ResourceData &
data
= resources_[i];
20
data
.free(
data
.data);
21
}
22
}
23
24
}
// namespace blender
BLI_resource_scope.hh
data
std::string data
Definition
BLI_set_test.cc:632
blender::ResourceScope::~ResourceScope
~ResourceScope()
Definition
resource_scope.cc:15
blender::ResourceScope::ResourceScope
ResourceScope()
blender::Vector::size
int64_t size() const
Definition
BLI_vector.hh:771
blender
Definition
ANIM_action.hh:36
int64_t
__int64 int64_t
Definition
stdint.h:89
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0