Lines Matching defs:info
68 #include "base/stats/info.hh"
195 Text::noOutput(const Info &info)
197 if (!info.flags.isSet(display))
200 if (info.prereq && info.prereq->zero())
382 DistPrint(const Text *text, const DistInfo &info);
383 DistPrint(const Text *text, const VectorDistInfo &info, int i);
384 void init(const Text *text, const Info &info);
388 DistPrint::DistPrint(const Text *text, const DistInfo &info)
389 : data(info.data)
391 init(text, info);
394 DistPrint::DistPrint(const Text *text, const VectorDistInfo &info, int i)
395 : data(info.data[i])
397 init(text, info);
399 name = info.name + "_" +
400 (info.subnames[i].empty() ? (std::to_string(i)) : info.subnames[i]);
402 if (!info.subdescs[i].empty())
403 desc = info.subdescs[i];
407 DistPrint::init(const Text *text, const Info &info)
409 name = text->statName(info.name);
410 separatorString = info.separatorString;
411 desc = info.desc;
412 flags = info.flags;
413 precision = info.precision;
545 Text::visit(const ScalarInfo &info)
547 if (noOutput(info))
551 print.value = info.result();
552 print.name = statName(info.name);
553 print.desc = info.desc;
554 print.flags = info.flags;
556 print.precision = info.precision;
564 Text::visit(const VectorInfo &info)
566 if (noOutput(info))
569 size_type size = info.size();
572 print.name = statName(info.name);
573 print.separatorString = info.separatorString;
574 print.desc = info.desc;
575 print.flags = info.flags;
577 print.precision = info.precision;
578 print.vec = info.result();
579 print.total = info.total();
582 if (!info.subnames.empty()) {
584 if (!info.subnames[i].empty()) {
585 print.subnames = info.subnames;
588 if (!info.subnames[i].empty() &&
589 !info.subdescs[i].empty()) {
590 print.subdescs = info.subdescs;
604 Text::visit(const Vector2dInfo &info)
606 if (noOutput(info))
612 if (!info.y_subnames.empty()) {
613 for (off_type i = 0; i < info.y; ++i) {
614 if (!info.y_subnames[i].empty()) {
615 print.subnames = info.y_subnames;
620 print.flags = info.flags;
621 print.separatorString = info.separatorString;
623 print.precision = info.precision;
626 if (!info.subnames.empty()) {
627 for (off_type i = 0; i < info.x; ++i)
628 if (!info.subnames[i].empty())
632 VResult tot_vec(info.y);
633 for (off_type i = 0; i < info.x; ++i) {
634 if (havesub && (i >= info.subnames.size() || info.subnames[i].empty()))
637 off_type iy = i * info.y;
638 VResult yvec(info.y);
641 for (off_type j = 0; j < info.y; ++j) {
642 yvec[j] = info.cvec[iy + j];
648 info.name + "_" +
649 (havesub ? info.subnames[i] : std::to_string(i)));
650 print.desc = info.desc;
660 if (info.flags.isSet(::Stats::total) && (info.x > 1)) {
661 print.name = statName(info.name);
663 print.desc = info.desc;
664 print.vec = VResult(1, info.total());
671 Text::visit(const DistInfo &info)
673 if (noOutput(info))
676 DistPrint print(this, info);
681 Text::visit(const VectorDistInfo &info)
683 if (noOutput(info))
686 for (off_type i = 0; i < info.size(); ++i) {
687 DistPrint print(this, info, i);
693 Text::visit(const FormulaInfo &info)
695 visit((const VectorInfo &)info);
713 SparseHistPrint(const Text *text, const SparseHistInfo &info);
714 void init(const Text *text, const Info &info);
719 SparseHistPrint::SparseHistPrint(const Text *text, const SparseHistInfo &info)
720 : data(info.data)
722 init(text, info);
727 SparseHistPrint::init(const Text *text, const Info &info)
729 name = text->statName(info.name);
730 separatorString = info.separatorString;
731 desc = info.desc;
732 flags = info.flags;
733 precision = info.precision;
768 Text::visit(const SparseHistInfo &info)
770 if (noOutput(info))
773 SparseHistPrint print(this, info);