text.cc (2665:a124942bacb8) text.cc (2716:b9114064d77a)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 115 unchanged lines hidden (view full) ---

124}
125
126void
127Text::output()
128{
129 using namespace Database;
130
131 ccprintf(*stream, "\n---------- Begin Simulation Statistics ----------\n");
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 115 unchanged lines hidden (view full) ---

124}
125
126void
127Text::output()
128{
129 using namespace Database;
130
131 ccprintf(*stream, "\n---------- Begin Simulation Statistics ----------\n");
132 if (bins().empty() || bins().size() == 1) {
133 stat_list_t::const_iterator i, end = stats().end();
134 for (i = stats().begin(); i != end; ++i)
135 (*i)->visit(*this);
136 } else {
137 ccprintf(*stream, "PRINTING BINNED STATS\n");
138 bin_list_t::iterator i, end = bins().end();
139 for (i = bins().begin(); i != end; ++i) {
140 MainBin *bin = *i;
141 bin->activate();
142 ccprintf(*stream,"---%s Bin------------\n", bin->name());
143 stat_list_t::const_iterator i, end = stats().end();
144 for (i = stats().begin(); i != end; ++i)
145 (*i)->visit(*this);
146 ccprintf(*stream, "---------------------------------\n");
147 }
148 }
132 stat_list_t::const_iterator i, end = stats().end();
133 for (i = stats().begin(); i != end; ++i)
134 (*i)->visit(*this);
149 ccprintf(*stream, "\n---------- End Simulation Statistics ----------\n");
150 stream->flush();
151}
152
153bool
154Text::noOutput(const StatData &data)
155{
156 if (!(data.flags & print))

--- 582 unchanged lines hidden ---
135 ccprintf(*stream, "\n---------- End Simulation Statistics ----------\n");
136 stream->flush();
137}
138
139bool
140Text::noOutput(const StatData &data)
141{
142 if (!(data.flags & print))

--- 582 unchanged lines hidden ---