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 00021 #ifndef Debug_H 00022 #define Debug_H 00023 00024 #include "EvalBasics.H" 00025 #include "ValExpr.H" 00026 #include "Val.H" 00027 00028 bool CacheIt(Val v); 00029 // Return TRUE iff v is cacheable. 00030 00031 void PrintVars(std::ostream& os, const Vars& fv); 00032 // Print a list of variables. 00033 00034 void PrintTags(std::ostream& os, const FP::List& tags); 00035 // Print a list of tags. 00036 00037 void PrintNames(std::ostream& os, const FV2::List& names); 00038 // Print a list of names. 00039 00040 void PrintDpnd(std::ostream& os, Val v); 00041 // Print the top-level dependency set of the value v. 00042 00043 void PrintAllDpnd(std::ostream& os, Val v); 00044 // Print the complete dependency set of the value v. 00045 00046 Val ContextNames(const Context& c); 00047 // Returns the list of names in the context c. 00048 00049 void PrintDpndSize(std::ostream& os, Val v); 00050 // Print the sizes of the dps's nested in the value v. 00051 00052 void PrintDepsDiffs(const Text &source, const FP::Tag &pk, CacheEntry::Index cIndex, 00053 Val old_v, Val new_v, const Text &name = "result"); 00054 // Print the difference between the dependency information recorded in 00055 // two values. (Used for checking the effect of changes to the 00056 // evaluator's code. See the -dependency-check option.) 00057 00058 #endif // Debug_H
1.5.1