rasdaman complete source
algebraops.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 /
23 /*************************************************************
24  *
25  *
26  *
27  *
28  * COMMENTS:
29  *
30  ************************************************************/
31 
32 
33 
34 #ifndef _ALGEBRAOPS_HH_
35 #define _ALGEBRAOPS_HH__
36 
37 #include "ops.hh"
38 
39 #include <vector>
40 #include <string>
41 
42 // forward declarations
43 class QtOperation;
44 class QtData;
45 
46 //@ManMemo: Module: {\bf catalogif}
47 
48 /*@Doc:
49 
50  Operation object for marray contstructor of the query language.
51 
52 */
60 class QLMarrayOp: public MarrayOp
61 {
62 public:
64  QLMarrayOp( QtOperation* newCellExpression, std::vector<QtData*>* newDataList,
65  std::string &newIteratorName,
66  BaseType* newResType, unsigned int newResOff = 0 );
72  virtual ~QLMarrayOp();
74 
76  virtual void operator() ( char* result, const r_Point& p );
77 
78 private:
80  QtOperation* cellExpression;
81 
83  std::vector<QtData*>* dataList;
84 
86  std::string iteratorName;
87 };
88 
89 
90 
91 
92 //@ManMemo: Module: {\bf catalogif}
93 
94 /*@Doc:
95 
96  Operation object for condenser operation of the query language.
97 
98 */
99 
100 class QLCondenseOp: public GenCondenseOp
101 {
102 public:
104  QLCondenseOp( QtOperation* newCellExpression,
105  QtOperation* newCondExpression,
106  std::vector<QtData*>* newDataList,
107  std::string &newIteratorName,
108  BaseType* newResType,
109  unsigned int newResOff,
110  BinaryOp* newAccuOp,
111  char* newInitVal = 0 );
117  virtual ~QLCondenseOp();
119 
121  virtual void operator() ( const r_Point& p );
122 
123 private:
125  QtOperation* cellExpression;
126 
128  QtOperation* condExpression;
129 
131  std::vector<QtData*>* dataList;
132 
134  std::string iteratorName;
135 };
136 
137 #endif
138 
Definition: qtdata.hh:83
Definition: relcatalogif/basetype.hh:66
Definition: qtoperation.hh:57