Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FN_multi_function_procedure_executor.hh « functions « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2233ae7d675c331858729f663978f95cb2c95909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

/** \file
 * \ingroup fn
 */

#include "FN_multi_function_procedure.hh"

namespace blender::fn {

/** A multi-function that executes a procedure internally. */
class MFProcedureExecutor : public MultiFunction {
 private:
  MFSignature signature_;
  const MFProcedure &procedure_;

 public:
  MFProcedureExecutor(const MFProcedure &procedure);

  void call(IndexMask mask, MFParams params, MFContext context) const override;

 private:
  ExecutionHints get_execution_hints() const override;
};

}  // namespace blender::fn