This class uses the reflection API to build the description of a function or a class method. Special tags are expected in the reflection API of the function/method in order to generate the function introspective description. The mapped function may have or not a unique returned value. The mapped function can have an arbitrary number of input arguments. Only scalar argument/returned values of simple types (bool, integer, real, string) are supported for now.
More...
#include <bayeux/datatools/introspection/builder.h>
|
static void | dump_func (const camp::Function &func_, std::ostream &out_=std::clog) |
|
This class uses the reflection API to build the description of a function or a class method. Special tags are expected in the reflection API of the function/method in order to generate the function introspective description. The mapped function may have or not a unique returned value. The mapped function can have an arbitrary number of input arguments. Only scalar argument/returned values of simple types (bool, integer, real, string) are supported for now.
◆ method_builder() [1/3]
datatools::introspection::method_builder::method_builder |
( |
| ) |
|
◆ method_builder() [2/3]
datatools::introspection::method_builder::method_builder |
( |
const std::string & |
funcname_ | ) |
|
◆ method_builder() [3/3]
datatools::introspection::method_builder::method_builder |
( |
const std::string & |
classname_, |
|
|
const std::string & |
funcname_ |
|
) |
| |
◆ build()
void datatools::introspection::method_builder::build |
( |
method & |
method_ | ) |
|
Build the description of the method from the reflection function object.
◆ build_argument()
void datatools::introspection::method_builder::build_argument |
( |
std::size_t |
arg_index_, |
|
|
argument & |
arg_ |
|
) |
| |
Build an input argument at given index.
◆ build_parameter_data_description()
void datatools::introspection::method_builder::build_parameter_data_description |
( |
camp::Type |
param_type_, |
|
|
std::size_t |
param_index_, |
|
|
data_description & |
param_dd_ |
|
) |
| |
Build a data description for a parameter.
◆ build_returned()
void datatools::introspection::method_builder::build_returned |
( |
argument & |
returned_ | ) |
|
Build the returned parameter.
◆ dump_func()
static void datatools::introspection::method_builder::dump_func |
( |
const camp::Function & |
func_, |
|
|
std::ostream & |
out_ = std::clog |
|
) |
| |
|
static |
◆ reset()
void datatools::introspection::method_builder::reset |
( |
| ) |
|
◆ set_classname()
void datatools::introspection::method_builder::set_classname |
( |
const std::string & |
classname_ | ) |
|
◆ set_funcname()
void datatools::introspection::method_builder::set_funcname |
( |
const std::string & |
funcname_ | ) |
|
Set the function name (if not provided, the name of the reflection function object will be used.
◆ set_function()
void datatools::introspection::method_builder::set_function |
( |
const camp::Function & |
func_ | ) |
|
◆ logging
The documentation for this class was generated from the following file: