28 #include <agrum/PRM/classDependencyGraph.h> 29 #include <agrum/PRM/inference/SVE.h> 34 template <
typename GUM_SCALAR >
38 const auto& class_a = i.type().get(a.safeName());
39 s << &(a.type().variable()) <<
" - ";
40 s << i.name() <<
"." << a.safeName()
41 <<
": input=" << i.type().isInputNode(class_a);
42 s <<
" output=" << i.type().isOutputNode(class_a)
43 <<
" inner=" << i.type().isInnerNode(class_a);
47 template <
typename GUM_SCALAR >
50 s << i.name() << std::endl;
51 s <<
"Attributes: " << std::endl;
53 s << __print_attribute__(i, *(a.second));
55 if (i.type().slotChains().size()) {
56 s << std::endl <<
"SlotChains: " << std::endl;
57 for (
auto sc: i.type().slotChains()) {
58 s << sc->name() <<
" ";
64 template <
typename GUM_SCALAR >
66 std::stringstream str;
68 str << __print_instance__(*(i.second)) << std::endl;
73 template <
typename LIST >
78 s << i->name() <<
" ";
84 template <
typename GUM_SCALAR >
88 for (
auto var: pot.variablesSequence()) {
95 template <
typename SET >
100 s << __print_pot__(*p) <<
" ";
430 if (
inner) {
break; }
440 for (
const auto&
elt: *
i) {
std::string __print_pot__(const Potential< GUM_SCALAR > &pot)
INLINE void emplace(Args &&... args)
std::string __print_list__(LIST l)
std::string __print_instance__(const PRMInstance< GUM_SCALAR > &i)
ParamScopeData(const std::string &s, const PRMReferenceSlot< GUM_SCALAR > &ref, Idx d)
std::string __print_attribute__(const PRMInstance< GUM_SCALAR > &i, const PRMAttribute< GUM_SCALAR > &a)
std::string __print_system__(const PRMSystem< GUM_SCALAR > &s)
std::string __print_set__(SET set)