#include <stddef.h>
#include <any>
#include <functional>
#include <map>
#include <string>
Go to the source code of this file.
|
template<class Func > |
void | register_function (function_dict_t *&extra_functions, std::string name, Func &&func) |
| Make the given function available to alpaqa.
|
|
template<class Func > |
void | register_function (problem_register_t &result, std::string name, Func &&func) |
|
template<class Func > |
void | register_function (control_problem_register_t &result, std::string name, Func &&func) |
|
template<class Result , class T , class Ret , class... Args> |
void | register_member_function (Result &result, std::string name, Ret(T::*member)(Args...)) |
|
template<auto Member, class Class , class Ret , class... Args> |
static auto | member_caller (Ret(Class::*)(Args...)) |
|
template<auto Member, class Class , class Ret > |
static auto | member_caller (Ret Class::*) |
|
template<auto Member> |
static auto | member_caller () |
| Wrap the given member function of signature into a lambda function that accepts the instance as a void pointer.
|
|
void | unregister_functions (function_dict_t *&extra_functions) |
| Cleans up the extra functions registered by register_function.
|
|
◆ alpaqa_function_dict_s
struct alpaqa_function_dict_s |
Class Members |
map< string, any > |
dict {} |
|
◆ alpaqa_real_t
◆ alpaqa_length_t
◆ alpaqa_index_t
◆ alpaqa_function_dict_t
Opaque type for a C++-only map of extra functions.
Definition at line 158 of file dl-problem.h.