|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2012 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or (at 00008 // your option) any later version. 00009 // 00010 // This program 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 // General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License along 00016 // with this program. If not, see <http://www.gnu.org/licenses/>. 00017 // 00018 00019 #ifndef AEFIND_FUNCTION_DELETE_H 00020 #define AEFIND_FUNCTION_DELETE_H 00021 00022 #include <aefind/tree/monadic.h> 00023 00024 class tree_list; // forward 00025 00030 class tree_delete: 00031 public tree_monadic 00032 { 00033 public: 00037 virtual ~tree_delete(); 00038 00039 private: 00044 tree_delete(const tree::pointer &arg); 00045 00046 public: 00051 static pointer create(const tree::pointer &arg); 00052 00057 static pointer create_l(const tree_list &arg); 00058 00059 protected: 00060 // See base class for documentation. 00061 const char *name(void) const; 00062 00063 // See base class for documentation. 00064 rpt_value::pointer evaluate(string_ty *, string_ty *, string_ty *, 00065 struct stat *) const; 00066 00067 // See base class for documentation. 00068 bool useful(void) const; 00069 00070 // See base class for documentation. 00071 bool constant(void) const; 00072 00073 // See base class for documentation. 00074 tree::pointer optimize(void) const; 00075 00076 private: 00080 tree_delete(); 00081 00085 tree_delete(const tree_delete &); 00086 00090 tree_delete &operator=(const tree_delete &); 00091 }; 00092 00093 // vim: set ts=8 sw=4 et : 00094 #endif // AEFIND_FUNCTION_DELETE_H
1.7.6.1