File: insert.cc

package info (click to toggle)
simrisc 16.05.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,877; fortran: 665; makefile: 112; ansic: 112; sh: 107
file content (16 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//#define XERR
#include "probgroup.ih"

std::ostream &ProbGroup::insert(ostream &out) const
{
    out << s_labels[d_breastCancer][0] << d_group <<
                                          s_labels[d_breastCancer][1];
    if (not d_breastCancer)
        Globals::setWidthPrec(out, 2, 4);

    for (size_t idx = 0; idx != N_PROBCATS; ++idx)
        out << static_cast<char>('a' + idx) << ": " <<
                setw(4) << d_prob[idx] << ", ";

    return out;
}