#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <any>
#include <exception>
#include <functional>
#include <map>
#include <string>
Go to the source code of this file.
|
static void | alpaqa_problem_register_init (alpaqa_problem_register_t *self) |
|
static void | alpaqa_control_problem_register_init (alpaqa_control_problem_register_t *self) |
|
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...)) |
| Overload for non-const-qualified member functions.
|
|
template<auto Member, class Class , class Ret > |
static auto | member_caller (Ret Class::*) |
| Overload for member variables.
|
|
template<auto Member> |
static auto | member_caller () |
| Wrap the given member function or variable into a (possibly generic) lambda function that accepts the instance as a type-erased void pointer.
|
|
void | unregister_functions (function_dict_t *&extra_functions) |
| Cleans up the extra functions registered by register_function.
|
|
◆ alpaqa_dense_t
◆ alpaqa_function_dict_s
struct alpaqa_function_dict_s |
Class Members |
map< string, any > |
dict {} |
|
◆ alpaqa_exception_ptr_s
struct alpaqa_exception_ptr_s |
Class Members |
exception_ptr |
exc {} |
|
◆ alpaqa_sparsity_t.__unnamed7__
union alpaqa_sparsity_t.__unnamed7__ |
◆ ALPAQA_DL_ABI_VERSION
#define ALPAQA_DL_ABI_VERSION 0xA1A000000002 |
◆ ALPAQA_BEGIN_STRUCT
#define ALPAQA_BEGIN_STRUCT |
( |
|
name | ) |
struct name |
◆ ALPAQA_END_STRUCT
#define ALPAQA_END_STRUCT |
( |
|
name | ) |
|
◆ ALPAQA_DEFAULT
#define ALPAQA_DEFAULT |
( |
|
... | ) |
{ __VA_ARGS__ } |
◆ ALPAQA_PROBLEM_REGISTER_INIT
#define ALPAQA_PROBLEM_REGISTER_INIT |
( |
|
self | ) |
|
Value:
static void alpaqa_control_problem_register_init(alpaqa_control_problem_register_t *self)
static void alpaqa_problem_register_init(alpaqa_problem_register_t *self)
Initialize an instance of alpaqa_problem_register_t or alpaqa_control_problem_register_t.
It initializes all members to zero, except for the ABI version, which is initialized to the current ABI version. Available in C only (unnecessary in C++).
- Parameters
-
self | A pointer to the instance to initialize. |
- Examples
- C++/DLProblem/main.cpp.
Definition at line 585 of file dl-problem.h.
◆ 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 361 of file dl-problem.h.
◆ alpaqa_exception_ptr_t
Opaque type for a C++-only exception pointer.
Definition at line 363 of file dl-problem.h.
◆ alpaqa_symmetry
◆ alpaqa_problem_register_init()
◆ alpaqa_control_problem_register_init()