summaryrefslogtreecommitdiffstats
path: root/catalogmgr/algebraops.hh
diff options
context:
space:
mode:
Diffstat (limited to 'catalogmgr/algebraops.hh')
-rw-r--r--catalogmgr/algebraops.hh130
1 files changed, 130 insertions, 0 deletions
diff --git a/catalogmgr/algebraops.hh b/catalogmgr/algebraops.hh
new file mode 100644
index 0000000..d026db1
--- /dev/null
+++ b/catalogmgr/algebraops.hh
@@ -0,0 +1,130 @@
+/*
+* This file is part of rasdaman community.
+*
+* Rasdaman community is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* Rasdaman community is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
+*
+* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
+rasdaman GmbH.
+*
+* For more information please see <http://www.rasdaman.org>
+* or contact Peter Baumann via <baumann@rasdaman.com>.
+/
+/*************************************************************
+ *
+ *
+ *
+ *
+ * COMMENTS:
+ *
+ ************************************************************/
+
+#ifndef _ALGEBRAOPS_HH_
+#define _ALGEBRAOPS_HH__
+
+#include "ops.hh"
+
+#include <vector>
+#include <string>
+
+// forward declarations
+class QtOperation;
+class QtData;
+
+//@ManMemo: Module: {\bf catalogif}
+
+/*@Doc:
+
+ Operation object for marray contstructor of the query language.
+
+*/
+
+class QLMarrayOp: public MarrayOp
+{
+ public:
+ /// constructor
+ QLMarrayOp( QtOperation* newCellExpression, std::vector<QtData*>* newDataList,
+ std::string &newIteratorName,
+ BaseType* newResType, unsigned int newResOff = 0 );
+ /**
+ Constructor gets cell expression pointer, data vector for bounded variables,
+ cell type, and type offset
+ */
+
+ /// virtual destructor
+ virtual ~QLMarrayOp();
+
+ /// operator that carries out the cell expression on point {\tt p}.
+ virtual void operator() ( char* result, const r_Point& p );
+
+ private:
+ /// pointer to the cell expression
+ QtOperation* cellExpression;
+
+ /// pointer to data vector
+ std::vector<QtData*>* dataList;
+
+ /// name of the iterator
+ std::string iteratorName;
+};
+
+
+
+
+//@ManMemo: Module: {\bf catalogif}
+
+/*@Doc:
+
+ Operation object for condenser operation of the query language.
+
+*/
+
+class QLCondenseOp: public GenCondenseOp
+{
+ public:
+ /// constructor
+ QLCondenseOp( QtOperation* newCellExpression,
+ QtOperation* newCondExpression,
+ std::vector<QtData*>* newDataList,
+ std::string &newIteratorName,
+ BaseType* newResType,
+ unsigned int newResOff,
+ BinaryOp* newAccuOp,
+ char* newInitVal = 0 );
+ /**
+ Constructor gets cell expression pointer, cell condition expression pointer,
+ data vector for bounded variables, cell type, and type offset
+ */
+
+ /// virtual destructor
+ virtual ~QLCondenseOp();
+
+ /// operator that carries out the cell expression on point {\tt p}.
+ virtual void operator() ( const r_Point& p );
+
+ private:
+ /// pointer to the cell expression
+ QtOperation* cellExpression;
+
+ /// pointer to the condition expression
+ QtOperation* condExpression;
+
+ /// pointer to data vector
+ std::vector<QtData*>* dataList;
+
+ /// name of the iterator
+ std::string iteratorName;
+};
+
+#endif
+