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

Method setup_output

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

Source from the content-addressed store, hash-verified

71
72 template <auto Idx, typename C>
73 void setup_output(avnd::field_reflection<Idx, C> refl)
74 {
75 if constexpr(requires { avnd::get_name<C>(); })
76 {
77 class_def.def_property(
78 c_str(output_name(refl)),
79 [](const T& t) { return avnd::pfr::get<Idx>(t.outputs).value; },
80 [](T& t, decltype(C::value) x) { avnd::pfr::get<Idx>(t.outputs).value = x; });
81 }
82 }
83
84 template <auto Idx, typename M>
85 void setup_message(avnd::field_reflection<Idx, M>)

Callers

nothing calls this directly

Calls 2

output_nameFunction · 0.85
c_strFunction · 0.70

Tested by

no test coverage detected