Result value;
std::string name;
std::string desc;
+ std::string unitStr;
Flags flags;
bool descriptions;
bool spaces;
+ bool units;
int precision;
Result pdf;
Result cdf;
if (!desc.empty())
ccprintf(stream, " # %s", desc);
}
+ if (units && !unitStr.empty()) {
+ ccprintf(stream, " (%s)", unitStr);
+ }
stream << std::endl;
}
}
std::string name;
std::string separatorString;
std::string desc;
+ std::string unitStr;
std::vector<std::string> subnames;
std::vector<std::string> subdescs;
Flags flags;
+ bool units;
bool descriptions;
bool spaces;
int precision;
ScalarPrint print(spaces);
print.name = name;
print.desc = desc;
+ print.unitStr = unitStr;
print.precision = precision;
print.descriptions = descriptions;
+ print.units = units;
print.flags = flags;
print.pdf = _total ? 0.0 : NAN;
print.cdf = _total ? 0.0 : NAN;
print.name = base + (havesub ? subnames[i] : std::to_string(i));
print.desc = subdescs.empty() ? desc : subdescs[i];
+ print.unitStr = unitStr;
print.update(vec[i], _total);
print(stream, flags.isSet(oneline));
if (!desc.empty())
ccprintf(stream, " # %s", desc);
}
+ if (units && !unitStr.empty()) {
+ ccprintf(stream, " (%s)", unitStr);
+ }
stream << std::endl;
}
}
print.cdf = NAN;
print.name = base + "total";
print.desc = desc;
+ print.unitStr = unitStr;
print.value = total;
print(stream);
}
std::string name;
std::string separatorString;
std::string desc;
+ std::string unitStr;
Flags flags;
+ bool units;
bool descriptions;
bool spaces;
int precision;
if (!info.subdescs[i].empty())
desc = info.subdescs[i];
+
+ unitStr = info.unit->getUnitString();
}
void
name = text->statName(info.name);
separatorString = info.separatorString;
desc = info.desc;
+ unitStr = info.unit->getUnitString();
flags = info.flags;
precision = info.precision;
descriptions = text->descriptions;
+ units = text->units;
spaces = text->spaces;
if (spaces) {
nameSpaces = 40;
print.flags = flags;
print.descriptions = descriptions;
print.desc = desc;
+ print.unitStr = unitStr;
print.pdf = NAN;
print.cdf = NAN;
if (!desc.empty())
ccprintf(stream, " # %s", desc);
}
+ if (units && !unitStr.empty()) {
+ ccprintf(stream, " (%s)", unitStr);
+ }
stream << std::endl;
}
print.value = info.result();
print.name = statName(info.name);
print.desc = info.desc;
+ print.unitStr = info.unit->getUnitString();
print.flags = info.flags;
print.descriptions = descriptions;
+ print.units = units;
print.precision = info.precision;
print.pdf = NAN;
print.cdf = NAN;
print.name = statName(info.name);
print.separatorString = info.separatorString;
print.desc = info.desc;
+ print.unitStr = info.unit->getUnitString();
print.flags = info.flags;
print.descriptions = descriptions;
+ print.units = units;
print.precision = info.precision;
print.vec = info.result();
print.total = info.total();
print.flags = info.flags;
print.separatorString = info.separatorString;
print.descriptions = descriptions;
+ print.units = units;
print.precision = info.precision;
print.forceSubnames = true;
info.name + "_" +
(havesub ? info.subnames[i] : std::to_string(i)));
print.desc = info.desc;
+ print.unitStr = info.unit->getUnitString();
print.vec = yvec;
print.total = total;
print(*stream);
print.name = statName(info.name);
print.subnames = total_subname;
print.desc = info.desc;
+ print.unitStr = info.unit->getUnitString();
print.vec = VResult(1, info.total());
print.flags = print.flags & ~total;
print(*stream);
std::string name;
std::string separatorString;
std::string desc;
+ std::string unitStr;
Flags flags;
bool descriptions;
+ bool units;
bool spaces;
int precision;
name = text->statName(info.name);
separatorString = info.separatorString;
desc = info.desc;
+ unitStr = info.unit->getUnitString();
flags = info.flags;
precision = info.precision;
descriptions = text->descriptions;
+ units = text->units;
spaces = text->spaces;
}
print.precision = precision;
print.flags = flags;
print.descriptions = descriptions;
+ print.units = units;
print.desc = desc;
+ print.unitStr = unitStr;
print.pdf = NAN;
print.cdf = NAN;
if (!connected) {
text.open(*simout.findOrCreate(filename)->stream());
text.descriptions = desc;
+ text.units = desc; // the units are printed if descs are
text.spaces = spaces;
connected = true;
}