MCPcopy Create free account
hub / github.com/celtera/avendish / setup_input

Method setup_input

include/avnd/binding/python/processor.hpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63 template <auto Idx, typename C>
64 void setup_input(avnd::field_reflection<Idx, C> refl)
65 {
66 class_def.def_property(
67 c_str(input_name(refl)),
68 [](const T& t) { return avnd::pfr::get<Idx>(t.inputs).value; },
69 [](T& t, decltype(C::value) x) { avnd::pfr::get<Idx>(t.inputs).value = x; });
70 }
71
72 template <auto Idx, typename C>
73 void setup_output(avnd::field_reflection<Idx, C> refl)

Callers

nothing calls this directly

Calls 2

input_nameFunction · 0.85
c_strFunction · 0.70

Tested by

no test coverage detected