00001 // Copyright (C) 2001, Compaq Computer Corporation 00002 // 00003 // This file is part of Vesta. 00004 // 00005 // Vesta is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public 00007 // License as published by the Free Software Foundation; either 00008 // version 2.1 of the License, or (at your option) any later version. 00009 // 00010 // Vesta is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with Vesta; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 00019 // Last modified on Thu Nov 8 12:36:38 EST 2001 by ken@xorian.net 00020 // modified on Fri Jul 27 19:04:05 PDT 2001 by mann 00021 // modified on Mon Aug 31 14:12:42 PDT 1998 by heydon 00022 00023 // NewVal.H -- debugging interface for constructing new cache-related values 00024 00025 #ifndef _NEW_VAL_H 00026 #define _NEW_VAL_H 00027 00028 #include <Basics.H> 00029 #include <FP.H> 00030 #include "BitVector.H" 00031 #include "FV.H" 00032 #include "Model.H" 00033 #include "CacheIndex.H" 00034 #include "Derived.H" 00035 #include "VestaVal.H" 00036 00037 class NewVal { 00038 public: 00039 static void NewNames(/*OUT*/ FV::List& names, unsigned int num = 0) 00040 throw (); 00041 static void NewFP(/*OUT*/ FP::Tag& fp, int vals = 3) throw (); 00042 static void NewFPs(/*OUT*/ FP::List& fps, unsigned int num = 0, 00043 int vals = 3) throw (); 00044 static void NewModel(/*OUT*/ Model::T &model) throw (); 00045 static void NewCI(/*OUT*/ CacheEntry::Index& index) throw (); 00046 static void NewCIs(/*OUT*/ CacheEntry::Indices& kids, unsigned int num = 0) 00047 throw (); 00048 static void NewDI(/*OUT*/ Derived::Index& index) throw (); 00049 static void NewDIs(/*OUT*/ Derived::Indices& kids, unsigned int num = 0) 00050 throw (); 00051 static void NewValue(/*OUT*/ VestaVal::T& value) throw (); 00052 static void NewBV(/*OUT*/ BitVector &bv) throw (); 00053 static void NewBool(/*OUT*/ bool &b) throw (); 00054 }; 00055 00056 #endif // _NEW_VAL_H