text.cc (7462:0c61c3cf7639) text.cc (7504:ad631c296c9b)
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;

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

343{
344 name = info.name;
345 desc = info.desc;
346 flags = info.flags;
347 precision = info.precision;
348 descriptions = text->descriptions;
349
350 type = params->type;
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;

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

343{
344 name = info.name;
345 desc = info.desc;
346 flags = info.flags;
347 precision = info.precision;
348 descriptions = text->descriptions;
349
350 type = params->type;
351 min = params->min;
352 max = params->max;
353 bucket_size = params->bucket_size;
354 size = params->buckets;
351 switch (type) {
352 case Dist:
353 min = params->min;
354 max = params->max;
355 bucket_size = params->bucket_size;
356 size = params->buckets;
357 break;
358 case Deviation:
359 break;
360 default:
361 panic("unknown distribution type");
362 }
355}
356
357void
358DistPrint::operator()(ostream &stream) const
359{
360 string base = name + "::";
361
362 ScalarPrint print;

--- 247 unchanged lines hidden ---
363}
364
365void
366DistPrint::operator()(ostream &stream) const
367{
368 string base = name + "::";
369
370 ScalarPrint print;

--- 247 unchanged lines hidden ---