rasdaman complete source
qtdelete.hh
Go to the documentation of this file.
1 #ifndef __QTDELETE_HH__
2 #define __QTDELETE_HH___
3 
4 #include "qlparser/qtexecute.hh"
6 
7 #include <iostream>
8 
9 /*
10 * This file is part of rasdaman community.
11 *
12 * Rasdaman community is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Rasdaman community is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
24 *
25 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
26 rasdaman GmbH.
27 *
28 * For more information please see <http://www.rasdaman.org>
29 * or contact Peter Baumann via <baumann@rasdaman.com>.
30 */
31 /*************************************************************
32  *
33  *
34  * COMMENTS:
35  *
36  ************************************************************/
37 
38 //@ManMemo: Module: {\bf qlparser}
39 
40 /*@Doc:
41 
42 */
43 
44 class QtDelete : public QtExecute
45 {
46 public:
48  QtDelete();
49 
51  virtual ~QtDelete();
52 
54  virtual int evaluate();
55 
57  virtual QtNodeList* getChilds( QtChildType flag );
58 
60  virtual void printTree( int tab, std::ostream& s = std::cout, QtChildType mode = QT_ALL_NODES );
61 
63  virtual void printAlgebraicExpression( std::ostream& s = std::cout );
64 
65  //@Man: Read/Write methods:
67  void setStreamInput( QtONCStream* newInput );
74 
76  inline virtual const QtNodeType getNodeType() const;
77 
79 // virtual void preOptimize();
84  virtual void checkType();
86 
87 private:
89  QtONCStream* input;
90 
92  static const QtNodeType nodeType;
93 };
94 
95 #include "qlparser/qtdelete.icc"
96 
97 #endif
98 
99 
100 
std::list< QtNode * > QtNodeList
list of QtNode pointers
Definition: qtnode.hh:91
virtual int evaluate()
method for evaluating the node
virtual ~QtDelete()
virtual destructor
virtual void printTree(int tab, std::ostream &s=std::cout, QtChildType mode=QT_ALL_NODES)
prints the tree
virtual void checkType()
pre optimization
QtDelete()
default constructor
QtChildType
Definition: qtnode.hh:186
QtNodeType
Definition: qtnode.hh:93
virtual const QtNodeType getNodeType() const
method for identification of nodes
Definition: qtoncstream.hh:54
virtual void printAlgebraicExpression(std::ostream &s=std::cout)
prints the algebraic expression
void setStreamInput(QtONCStream *newInput)
QtONCStream * getStreamInput()
returns input
virtual QtNodeList * getChilds(QtChildType flag)
return childs of the node
Definition: qtexecute.hh:41
Definition: qtnode.hh:190
Definition: qtdelete.hh:44