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 // File: Debug.H 00020 // Last Modified On Fri Aug 6 11:56:26 EDT 2004 by ken@xorian.net 00021 // Modified On Fri Mar 14 17:23:08 PST 1997 by yuanyu 00022 // modified on Tue Feb 27 15:47:00 PST 1996 by levin 00023 00024 #ifndef Debug_H 00025 #define Debug_H 00026 00027 #include "EvalBasics.H" 00028 #include "ValExpr.H" 00029 #include "Val.H" 00030 00031 bool CacheIt(Val v); 00032 // Return TRUE iff v is cacheable. 00033 00034 void PrintVars(std::ostream *os, const Vars& fv); 00035 // Print a list of variables. 00036 00037 void PrintTags(std::ostream *os, const FP::List& tags); 00038 // Print a list of tags. 00039 00040 void PrintNames(std::ostream *os, const FV2::List& names); 00041 // Print a list of names. 00042 00043 void PrintDpnd(std::ostream *os, Val v); 00044 // Print the top-level dependency set of the value v. 00045 00046 void PrintAllDpnd(std::ostream *os, Val v); 00047 // Print the complete dependency set of the value v. 00048 00049 Val ContextNames(const Context& c); 00050 // Returns the list of names in the context c. 00051 00052 void PrintDpndSize(std::ostream *os, Val v); 00053 // Print the sizes of the dps's nested in the value v. 00054 00055 #endif // Debug_H