MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
FunctionRequest.hpp
Go to the documentation of this file.
1#pragma once
2
4
5/**
6 * @struct FunctionRequest
7 * @brief One described function: how to name it as a template argument, and its parameter names.
8 *
9 * expression is the pointer to the function as it must be written in a specialization of
10 * Reflect::Generated::Signature, with a cast when the name is overloaded. callee is the name a
11 * call is written with, with the template arguments of a specialization, so the function's own
12 * default arguments apply. required counts the
13 * leading parameters that have no default. line is the line after which the sidecar include may
14 * appear: the closing brace of the outermost namespace holding the marker.
15 */
17 std::string name;
18 std::string expression;
19 std::string callee;
20 std::vector<std::string> parameters;
21 std::size_t required {};
22 unsigned line {};
23};
24
25/** @brief Every function described by the MF_DESCRIBE_FUNCTION markers of one header. */
27 std::filesystem::path header;
28 std::vector<FunctionRequest> functions;
29};
30
31using FunctionMap = std::map<std::filesystem::path, HeaderFunctions>;
32
33}
std::map< std::filesystem::path, HeaderFunctions > FunctionMap
One described function: how to name it as a template argument, and its parameter names.
std::vector< FunctionRequest > functions
Every function described by the MF_DESCRIBE_FUNCTION markers of one header.