output.hh (8338:4d1005f78496) output.hh (8514:57c96df312a1)
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;

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

38
39class Info;
40class ScalarInfo;
41class VectorInfo;
42class DistInfo;
43class VectorDistInfo;
44class Vector2dInfo;
45class FormulaInfo;
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;

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

38
39class Info;
40class ScalarInfo;
41class VectorInfo;
42class DistInfo;
43class VectorDistInfo;
44class Vector2dInfo;
45class FormulaInfo;
46class SparseHistInfo; // Sparse histogram
46
47struct Output
48{
49 virtual ~Output() {}
50 virtual void begin() = 0;
51 virtual void end() = 0;
52 virtual bool valid() const = 0;
53
54 virtual void visit(const ScalarInfo &info) = 0;
55 virtual void visit(const VectorInfo &info) = 0;
56 virtual void visit(const DistInfo &info) = 0;
57 virtual void visit(const VectorDistInfo &info) = 0;
58 virtual void visit(const Vector2dInfo &info) = 0;
59 virtual void visit(const FormulaInfo &info) = 0;
47
48struct Output
49{
50 virtual ~Output() {}
51 virtual void begin() = 0;
52 virtual void end() = 0;
53 virtual bool valid() const = 0;
54
55 virtual void visit(const ScalarInfo &info) = 0;
56 virtual void visit(const VectorInfo &info) = 0;
57 virtual void visit(const DistInfo &info) = 0;
58 virtual void visit(const VectorDistInfo &info) = 0;
59 virtual void visit(const Vector2dInfo &info) = 0;
60 virtual void visit(const FormulaInfo &info) = 0;
61 virtual void visit(const SparseHistInfo &info) = 0; // Sparse histogram
60};
61
62} // namespace Stats
63
64#endif // __BASE_STATS_OUTPUT_HH__
62};
63
64} // namespace Stats
65
66#endif // __BASE_STATS_OUTPUT_HH__