alpaqa 1.0.0a18
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
attribute_accessor< ParamString > Struct Reference

Detailed Description

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

Definition at line 34 of file params.tpp.

+ Collaboration diagram for attribute_accessor< ParamString >:

Static Public Member Functions

template<class T , class T_actual , class A >
static attribute_accessor make (A T_actual::*attr, std::string_view="")
 

Public Attributes

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

Member Function Documentation

◆ make()

template<class T , class T_actual , class A >
static attribute_accessor make ( A T_actual::*  attr,
std::string_view  = "" 
)
inlinestatic

Definition at line 36 of file params.tpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ set

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

Definition at line 41 of file params.tpp.


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