info.hh (8243:63e849f0f341) info.hh (8296:be7f03723412)
1/*
2 * Copyright (c) 2003-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;

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

57const FlagsType nozero = 0x0100;
58/** Don't print if this is NAN */
59const FlagsType nonan = 0x0200;
60
61/** Mask of flags that can't be set directly */
62const FlagsType __reserved = init | display;
63
64struct StorageParams;
1/*
2 * Copyright (c) 2003-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;

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

57const FlagsType nozero = 0x0100;
58/** Don't print if this is NAN */
59const FlagsType nonan = 0x0200;
60
61/** Mask of flags that can't be set directly */
62const FlagsType __reserved = init | display;
63
64struct StorageParams;
65struct Visit;
65struct Output;
66
67class Info
68{
69 public:
70 /** The name of the stat. */
71 std::string name;
72 /** The separator string used for vectors, dist, etc. */
73 static std::string separatorString;

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

124 * @return true if this stat has a value and satisfies its
125 * requirement as a prereq
126 */
127 virtual bool zero() const = 0;
128
129 /**
130 * Visitor entry for outputing statistics data
131 */
66
67class Info
68{
69 public:
70 /** The name of the stat. */
71 std::string name;
72 /** The separator string used for vectors, dist, etc. */
73 static std::string separatorString;

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

124 * @return true if this stat has a value and satisfies its
125 * requirement as a prereq
126 */
127 virtual bool zero() const = 0;
128
129 /**
130 * Visitor entry for outputing statistics data
131 */
132 virtual void visit(Visit &visitor) = 0;
132 virtual void visit(Output &visitor) = 0;
133
134 /**
135 * Checks if the first stat's name is alphabetically less than the second.
136 * This function breaks names up at periods and considers each subname
137 * separately.
138 * @param stat1 The first stat.
139 * @param stat2 The second stat.
140 * @return stat1's name is alphabetically before stat2's

--- 100 unchanged lines hidden ---
133
134 /**
135 * Checks if the first stat's name is alphabetically less than the second.
136 * This function breaks names up at periods and considers each subname
137 * separately.
138 * @param stat1 The first stat.
139 * @param stat2 The second stat.
140 * @return stat1's name is alphabetically before stat2's

--- 100 unchanged lines hidden ---