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: ApplyCache.H 00020 // Last modified on Fri Nov 9 14:02:43 EST 2001 by ken@xorian.net 00021 // modified on Wed Apr 12 16:32:33 PDT 2000 by yuanyu 00022 // modified on Thu Feb 29 16:11:54 PST 1996 by levin 00023 // modified on Fri Jan 26 16:56:30 PST 1996 by horning 00024 00025 #ifndef ApplyCache_H 00026 #define ApplyCache_H 00027 00028 #include "ValExpr.H" 00029 #include "Location.H" 00030 00031 // Apply a closure to arguments in the context c: 00032 Val ApplyFunction(ClosureVC *clos, ApplyEC *ae, const Context& c); 00033 Val ApplicationFromCache(ClosureVC *clos, const Context& argsCon, SrcLoc *loc); 00034 00035 // Apply a model to arguments in the context c: 00036 Val ApplyModel(ModelVC *model, ApplyEC *ae, const Context& c); 00037 Val ModelFromCache(ModelVC *model, const Context& argsCon, SrcLoc *loc); 00038 00039 // Apply the RunTool in the context c: 00040 Val ApplyRunTool(ArgList args, const Context& c); 00041 00042 void StartRenewLeaseThread(); 00043 00044 #endif // ApplyCache_H