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() <<
": input=" << i.type().isInputNode(class_a);
41 s <<
" output=" << i.type().isOutputNode(class_a)
42 <<
" inner=" << i.type().isInnerNode(class_a);
46 template <
typename GUM_SCALAR >
49 s << i.name() << std::endl;
50 s <<
"Attributes: " << std::endl;
52 s << __print_attribute__(i, *(a.second));
54 if (i.type().slotChains().size()) {
55 s << std::endl <<
"SlotChains: " << std::endl;
56 for (
auto sc: i.type().slotChains()) {
57 s << sc->name() <<
" ";
63 template <
typename GUM_SCALAR >
65 std::stringstream str;
67 str << __print_instance__(*(i.second)) << std::endl;
72 template <
typename LIST >
77 s << i->name() <<
" ";
83 template <
typename GUM_SCALAR >
87 for (
auto var: pot.variablesSequence()) {
94 template <
typename SET >
99 s << __print_pot__(*p) <<
" ";
386 if (
inner) {
break; }
396 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)