Blender V5.3
COM_closure.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <string>
8
9#include "BLI_map.hh"
10
13
14namespace blender {
15class ComputeContext;
16namespace bke {
17class bNodeTreeZone;
18}
19} // namespace blender
20
21namespace blender::compositor {
22
23class Result;
24class Closure;
25
27
28/* The representation of closures in the compositor. */
30 public:
31 /* The zone that this operation represents. */
33 /* The compute context of where the zone is defined. */
35 /* A map of the values that the closure captures from outside of the zone at the point it was
36 * defined, which corresponds to the external values of the zone tree operation, identified by
37 * the identifier returned by ZoneTreeOperation::get_external_input_identifier. */
39
43
44 /* Construct a new ClosurePtr from the given arguments using MEM_new. */
48
49 private:
50 /* Frees captured values and delete self. */
51 void delete_self() override;
52};
53
54} // namespace blender::compositor
Closure(const bke::bNodeTreeZone &zone, Map< std::string, Result * > captured_values, const ComputeContext &compute_context)
Definition closure.cc:10
const ComputeContext & compute_context
static ClosurePtr create(const bke::bNodeTreeZone &zone, Map< std::string, Result * > captured_values, const ComputeContext &compute_context)
Definition closure.cc:17
Map< std::string, Result * > captured_values
const bke::bNodeTreeZone & zone
ImplicitSharingPtr< Closure > ClosurePtr
BMesh Iterators.