alpaqa 1.0.0a13
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
param_setter_fun_t< T > Struct Template Reference

Detailed Description

template<class T>
struct alpaqa::params::param_setter_fun_t< T >

Function wrapper to set attributes of a struct, type-erasing the type of the attribute.

Definition at line 77 of file params.tpp.

+ Collaboration diagram for param_setter_fun_t< T >:

Public Member Functions

template<class T_actual , class A >
 param_setter_fun_t (A T_actual::*attr)
 
void operator() (T &t, ParamString s) const
 

Public Attributes

std::function< void(T &, ParamString)> set
 

Constructor & Destructor Documentation

◆ param_setter_fun_t()

template<class T >
template<class T_actual , class A >
param_setter_fun_t ( A T_actual::*  attr)
inline

Definition at line 79 of file params.tpp.

Member Function Documentation

◆ operator()()

template<class T >
void operator() ( T t,
ParamString  s 
) const
inline

Definition at line 81 of file params.tpp.

Member Data Documentation

◆ set

template<class T >
std::function<void(T &, ParamString)> set

Definition at line 80 of file params.tpp.


The documentation for this struct was generated from the following file: