rasdaman complete source
qtinfo.hh
Go to the documentation of this file.
1 #ifndef _QTINFO_HH__
2 #define _QTINFO_HH___
3 
4 /*
5 * This file is part of rasdaman community.
6 *
7 * Rasdaman community is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * Rasdaman community is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
21 rasdaman GmbH.
22 *
23 * For more information please see <http://www.rasdaman.org>
24 * or contact Peter Baumann via <baumann@rasdaman.com>.
25 */
26 /*************************************************************
27  *
28  *
29  * COMMENTS:
30  *
31  ************************************************************/
32 
34 
35 class QtVariable;
36 
37 
38 //@ManMemo: Module: {\bf qlparser}
39 
40 /*@Doc:
41 
42  The class represents an oid node.
43 
44 */
45 
46 class QtInfo : public QtUnaryOperation
47 {
48 public:
50  QtInfo( QtVariable* newInput );
51 
53  QtInfo( QtVariable* newInput, const char* params );
54 
56  QtData* evaluate( QtDataList* inputList );
57 
59  virtual void printTree( int tab, std::ostream& s = std::cout, QtChildType mode = QT_ALL_NODES );
60 
62  virtual void printAlgebraicExpression( std::ostream& s = std::cout );
63 
65  inline virtual const QtNodeType getNodeType() const;
66 
68  virtual const QtTypeElement& checkType( QtTypeTuple* typeTuple = NULL );
69 
70 private:
72  static const QtNodeType nodeType;
73 
75  int printTiles;
76 };
77 
78 #include "qlparser/qtinfo.icc"
79 
80 #endif
std::vector< QtData * > QtDataList
list of QtData pointers
Definition: qtnode.hh:77
Definition: qtnode.hh:463
Definition: qtdata.hh:83
QtChildType
Definition: qtnode.hh:186
QtNodeType
Definition: qtnode.hh:93
Definition: qtnode.hh:394
QtInfo(QtVariable *newInput)
constructor getting operand
Definition: qtvariable.hh:54
Definition: qtunaryoperation.hh:52
virtual void printAlgebraicExpression(std::ostream &s=std::cout)
prints the algebraic expression
Definition: qtinfo.hh:46
QtData * evaluate(QtDataList *inputList)
evaluates the node
virtual const QtTypeElement & checkType(QtTypeTuple *typeTuple=NULL)
type checking of the subtree
virtual void printTree(int tab, std::ostream &s=std::cout, QtChildType mode=QT_ALL_NODES)
prints the tree
Definition: qtnode.hh:190
virtual const QtNodeType getNodeType() const
method for identification of nodes