alpaqa 1.0.0a8
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 72 of file params.tpp.

+ Collaboration diagram for param_setter_fun_t< T >:

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ param_setter_fun_t()

param_setter_fun_t ( A T::*  attr)
inline

Definition at line 74 of file params.tpp.

Member Function Documentation

◆ operator()()

void operator() ( T &  t,
ParamString  s 
) const
inline

Definition at line 76 of file params.tpp.

Member Data Documentation

◆ set

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

Definition at line 75 of file params.tpp.


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