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

Function print_io

examples/Demos/GeneratePdHelp.cpp:176–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175template <typename Processor>
176void print_io()
177{
178 if constexpr(avnd::input_introspection<Processor>::size > 0)
179 {
180 fmt::print(outfile, "Inputs:\n");
181 int k = 0;
182
183 avnd::input_introspection<Processor>::for_all([&]<typename Field>(Field wrap) {
184 using type = typename Field::type;
185 fmt::print(outfile, " - Port index: {}\n", k++);
186 fmt::print(outfile, " - Type: {}\n", port_type(wrap));
187 fmt::print(outfile, " - Name: '{}'\n", avnd::get_name<type>());
188
189 fmt::print(outfile, "\n");
190 });
191 }
192
193 if constexpr(avnd::output_introspection<Processor>::size > 0)
194 {
195 fmt::print(outfile, "Outputs:\n");
196 int k = 0;
197 avnd::output_introspection<Processor>::for_all([&]<typename Field>(Field wrap) {
198 using type = typename Field::type;
199 fmt::print(outfile, " - Port index: {}\n", k++);
200 fmt::print(outfile, " - Type: {}\n", port_type(wrap));
201 fmt::print(outfile, " - Name: '{}'\n", avnd::get_name<type>());
202
203 fmt::print(outfile, "\n");
204 });
205 }
206}
207
208template <typename Processor>
209void print_parameters()

Callers

nothing calls this directly

Calls 1

port_typeFunction · 0.70

Tested by

no test coverage detected