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:
@@ -5,7 +5,7 @@
|
||||
/** \file
|
||||
* \ingroup fn
|
||||
*
|
||||
* An #MFContext is passed along with every call to a multi-function. Right now it does nothing,
|
||||
* An #Context is passed along with every call to a multi-function. Right now it does nothing,
|
||||
* but it can be used for the following purposes:
|
||||
* - Pass debug information up and down the function call stack.
|
||||
* - Pass reusable memory buffers to sub-functions to increase performance.
|
||||
@@ -16,18 +16,18 @@
|
||||
|
||||
#include "BLI_map.hh"
|
||||
|
||||
namespace blender::fn {
|
||||
namespace blender::fn::multi_function {
|
||||
|
||||
class MFContext;
|
||||
class Context;
|
||||
|
||||
class MFContextBuilder {
|
||||
class ContextBuilder {
|
||||
};
|
||||
|
||||
class MFContext {
|
||||
class Context {
|
||||
public:
|
||||
MFContext(MFContextBuilder & /*builder*/)
|
||||
Context(ContextBuilder & /*builder*/)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace blender::fn
|
||||
} // namespace blender::fn::multi_function
|
||||
|
||||
Reference in New Issue
Block a user