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
3
namespace
MayaFlux::Reflect::Tool
{
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
*/
16
struct
FunctionRequest
{
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. */
26
struct
HeaderFunctions
{
27
std::filesystem::path
header
;
28
std::vector<FunctionRequest>
functions
;
29
};
30
31
using
FunctionMap
= std::map<std::filesystem::path, HeaderFunctions>;
32
33
}
MayaFlux::Reflect::Tool::FunctionMap
std::map< std::filesystem::path, HeaderFunctions > FunctionMap
Definition
FunctionRequest.hpp:31
MayaFlux::Reflect::Tool
Definition
Build.cpp:19
MayaFlux::Reflect::Tool::FunctionRequest::required
std::size_t required
Definition
FunctionRequest.hpp:21
MayaFlux::Reflect::Tool::FunctionRequest::callee
std::string callee
Definition
FunctionRequest.hpp:19
MayaFlux::Reflect::Tool::FunctionRequest::parameters
std::vector< std::string > parameters
Definition
FunctionRequest.hpp:20
MayaFlux::Reflect::Tool::FunctionRequest::name
std::string name
Definition
FunctionRequest.hpp:17
MayaFlux::Reflect::Tool::FunctionRequest::line
unsigned line
Definition
FunctionRequest.hpp:22
MayaFlux::Reflect::Tool::FunctionRequest::expression
std::string expression
Definition
FunctionRequest.hpp:18
MayaFlux::Reflect::Tool::FunctionRequest
One described function: how to name it as a template argument, and its parameter names.
Definition
FunctionRequest.hpp:16
MayaFlux::Reflect::Tool::HeaderFunctions::header
std::filesystem::path header
Definition
FunctionRequest.hpp:27
MayaFlux::Reflect::Tool::HeaderFunctions::functions
std::vector< FunctionRequest > functions
Definition
FunctionRequest.hpp:28
MayaFlux::Reflect::Tool::HeaderFunctions
Every function described by the MF_DESCRIBE_FUNCTION markers of one header.
Definition
FunctionRequest.hpp:26
src
Tools
Reflect
FunctionRequest.hpp
Generated by
1.15.0