alpaqa 0.0.1
Nonconvex constrained optimization
Public Member Functions | Public Attributes | List of all members
attr_setter_fun_t< T > Class Template Reference

#include <alpaqa/kwargs-to-struct.hpp>

Detailed Description

template<class T>
class attr_setter_fun_t< T >

Definition at line 42 of file kwargs-to-struct.hpp.

+ Collaboration diagram for attr_setter_fun_t< T >:

Public Member Functions

template<class A >
 attr_setter_fun_t (A T::*attr)
 

Public Attributes

std::function< void(T &, const py::handle &)> set
 
std::function< py::object(const T &)> get
 

Constructor & Destructor Documentation

◆ attr_setter_fun_t()

attr_setter_fun_t ( A T::*  attr)
inline

Definition at line 45 of file kwargs-to-struct.hpp.

Member Data Documentation

◆ set

std::function<void(T &, const py::handle &)> set

Definition at line 48 of file kwargs-to-struct.hpp.

◆ get

std::function<py::object(const T &)> get

Definition at line 49 of file kwargs-to-struct.hpp.


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