24 Group(
const std::string& label = {});
41 const std::string key = n->getPath().size() > 0 ? n->getPath().getLastElement()
56 const std::string key = n->getPath().getLastElement();
67 bool visitEnter(
const std::string& key,
const std::string& type,
size_t size);
74 const std::string key = b->getPath().getLastElement();
82 const std::string key = d->getPath().getLastElement();
90 const std::string key = f->getPath().getLastElement();
98 const std::string key = i->getPath().getLastElement();
106 const std::string key = l->getPath().getLastElement();
115 const std::string key =
string->getPath().getLastElement();
116 this->addValueLabel(key, *
s,
"string");
123 const std::string key = array->getPath().getLastElement();
131 << (unknown ? unknown->getFullName() :
"nullptr");
136 template <
class DataT>
138 addValueLabel(
const std::string& key, DataT& n,
const std::string& typeName)
140 checkGroupsNotEmpty();
142 g.layout.add(
Label(key), {g.nextRow, 0})
143 .add(
Label(
"(" + typeName +
")"), {g.nextRow, 1})
144 .add(
Label(
"= " + getValueText(n)), {g.nextRow, 2});
148 template <
class DataT>
150 getValueText(DataT& n)
152 std::stringstream ss;
153 streamValueText(n, ss);
157 template <
class DataT>
159 streamValueText(DataT& n, std::stringstream& ss)
165 void streamValueText(aron::data::NDArray& n, std::stringstream& ss);
167 void checkGroupsNotEmpty()
const;