output.hh revision 8514
1695SN/A/* 21762SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 3695SN/A * All rights reserved. 4695SN/A * 5695SN/A * Redistribution and use in source and binary forms, with or without 6695SN/A * modification, are permitted provided that the following conditions are 7695SN/A * met: redistributions of source code must retain the above copyright 8695SN/A * notice, this list of conditions and the following disclaimer; 9695SN/A * redistributions in binary form must reproduce the above copyright 10695SN/A * notice, this list of conditions and the following disclaimer in the 11695SN/A * documentation and/or other materials provided with the distribution; 12695SN/A * neither the name of the copyright holders nor the names of its 13695SN/A * contributors may be used to endorse or promote products derived from 14695SN/A * this software without specific prior written permission. 15695SN/A * 16695SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17695SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18695SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19695SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20695SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21695SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22695SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23695SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24695SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25695SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26695SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Nathan Binkert 29695SN/A */ 30695SN/A 31695SN/A#ifndef __BASE_STATS_OUTPUT_HH__ 32695SN/A#define __BASE_STATS_OUTPUT_HH__ 33695SN/A 348296Snate@binkert.org#include <list> 35695SN/A#include <string> 36695SN/A 37729SN/Anamespace Stats { 38695SN/A 398296Snate@binkert.orgclass Info; 408296Snate@binkert.orgclass ScalarInfo; 418296Snate@binkert.orgclass VectorInfo; 428296Snate@binkert.orgclass DistInfo; 438296Snate@binkert.orgclass VectorDistInfo; 448296Snate@binkert.orgclass Vector2dInfo; 458296Snate@binkert.orgclass FormulaInfo; 468514SThomas.Grass@ARM.comclass SparseHistInfo; // Sparse histogram 478296Snate@binkert.org 488296Snate@binkert.orgstruct Output 49695SN/A{ 508338Sgblack@eecs.umich.edu virtual ~Output() {} 518296Snate@binkert.org virtual void begin() = 0; 528296Snate@binkert.org virtual void end() = 0; 53695SN/A virtual bool valid() const = 0; 548296Snate@binkert.org 558296Snate@binkert.org virtual void visit(const ScalarInfo &info) = 0; 568296Snate@binkert.org virtual void visit(const VectorInfo &info) = 0; 578296Snate@binkert.org virtual void visit(const DistInfo &info) = 0; 588296Snate@binkert.org virtual void visit(const VectorDistInfo &info) = 0; 598296Snate@binkert.org virtual void visit(const Vector2dInfo &info) = 0; 608296Snate@binkert.org virtual void visit(const FormulaInfo &info) = 0; 618514SThomas.Grass@ARM.com virtual void visit(const SparseHistInfo &info) = 0; // Sparse histogram 62695SN/A}; 63695SN/A 647811Ssteve.reinhardt@amd.com} // namespace Stats 65695SN/A 66695SN/A#endif // __BASE_STATS_OUTPUT_HH__ 67