Functions: introduce multi-function namespace

This moves all multi-function related code in the `functions` module
into a new `multi_function` namespace. This is similar to how there
is a `lazy_function` namespace.

The main benefit of this is that many types names that were prefixed
with `MF` (for "multi function") can be simplified.

There is also a common shorthand for the `multi_function` namespace: `mf`.
This is also similar to lazy-functions where the shortened namespace
is called `lf`.
This commit is contained in:
2023-01-07 17:32:28 +01:00
parent a5b27f9858
commit eedcf1876a
87 changed files with 1437 additions and 1459 deletions

View File

@@ -8,21 +8,21 @@
#include "FN_multi_function_procedure.hh"
namespace blender::fn {
namespace blender::fn::multi_function {
/** A multi-function that executes a procedure internally. */
class MFProcedureExecutor : public MultiFunction {
class ProcedureExecutor : public MultiFunction {
private:
MFSignature signature_;
const MFProcedure &procedure_;
Signature signature_;
const Procedure &procedure_;
public:
MFProcedureExecutor(const MFProcedure &procedure);
ProcedureExecutor(const Procedure &procedure);
void call(IndexMask mask, MFParams params, MFContext context) const override;
void call(IndexMask mask, MFParams params, Context context) const override;
private:
ExecutionHints get_execution_hints() const override;
};
} // namespace blender::fn
} // namespace blender::fn::multi_function