rasdaman complete source
Public Member Functions | List of all members
QtSelectionIterator Class Reference

#include <qtselectioniterator.hh>

Inheritance diagram for QtSelectionIterator:
QtIterator QtONCStream QtNode

Public Member Functions

 QtSelectionIterator ()
 default constructor More...
 
 QtSelectionIterator (QtNode *node)
 constructor getting a pointer to the parent More...
 
virtual ~QtSelectionIterator ()
 virtual destructor More...
 
virtual QtNodeListgetChilds (QtChildType flag)
 return childs of the node More...
 
virtual void setInput (QtOperation *child, QtOperation *input)
 method for query rewrite More...
 
virtual void printTree (int tab, std::ostream &s=std::cout, QtChildType mode=QT_ALL_NODES)
 optimizing load access More...
 
virtual void printAlgebraicExpression (std::ostream &s=std::cout)
 prints the algebraic expression More...
 
virtual const QtNodeType getNodeType () const
 method for identification of nodes More...
 
virtual const QtTypeTuplecheckType ()
 type checking More...
 
QtDataListnext ()
 
void setConditionTree (QtOperation *operation)
 
QtOperationgetConditionTree ()
 
- Public Member Functions inherited from QtIterator
 QtIterator ()
 default constructor More...
 
 QtIterator (QtNode *node)
 constructor getting a pointer to the parent More...
 
virtual ~QtIterator ()
 destructor More...
 
void getInputTypeTuple (QtTypeTuple &typeTuple)
 pre optimization More...
 
virtual void open ()
 
virtual void close ()
 
virtual void reset ()
 
void setStreamInputs (QtONCStreamList *inputs)
 
QtONCStreamListgetStreamInputs ()
 Returns inputs. More...
 
void setStreamInput (QtONCStream *oldInput, QtONCStream *newInput)
 exchange the stream input { oldInput} with { newInput} More...
 
- Public Member Functions inherited from QtONCStream
 QtONCStream ()
 default constructor More...
 
 QtONCStream (QtNode *node)
 constructor getting a pointer to the parent More...
 
void setDataStreamType (const QtTypeTuple &type)
 
const QtTypeTuplegetDataStreamType () const
 
- Public Member Functions inherited from QtNode
 QtNode ()
 default constructor More...
 
 QtNode (QtNode *node)
 constructor getting a pointer to the parent More...
 
virtual ~QtNode ()
 destructor More...
 
bool subtype (enum QtNodeType a, enum QtNodeType b)
 returns weather class b is a subtype of class a More...
 
QtNodeListgetChild (const QtNodeType node, QtChildType flag=QT_DIRECT_CHILDS)
 return childs of a certain class More...
 
virtual bool equalMeaning (QtNode *node)
 test if the two nodes have an equal meaning in a subtree More...
 
virtual std::string getSpelling ()
 creates a unique name for a common subexpression More...
 
virtual QtAreaType getAreaType ()
 test if the edge to the parent node is of type mdd or atomic More...
 
virtual void simplify ()
 simplifies the tree More...
 
enum QtNodeType getQtNodeTypeParent (enum QtNodeType)
 method for pre optimizations (basically load optimization) More...
 
QtNodegetParent () const
 
void setParent (QtNode *node)
 
const ParseInfogetParseInfo ()
 
void setParseInfo (const ParseInfo &info)
 

Additional Inherited Members

- Public Types inherited from QtIterator
typedef std::vector
< QtONCStream * > 
QtONCStreamList
 list of QtONCStream objects More...
 
- Public Types inherited from QtNode
enum  QtNodeType {
  QT_UNDEFINED_NODE, QT_MDD_ACCESS, QT_OPERATION_ITERATOR, QT_SELECTION_ITERATOR,
  QT_JOIN_ITERATOR, QT_UPDATE, QT_INSERT, QT_DELETE,
  QT_COMMAND, QT_PLUS, QT_MINUS, QT_MULT,
  QT_DIV, QT_OR, QT_AND, QT_XOR,
  QT_IS, QT_EQUAL, QT_NOT_EQUAL, QT_LESS,
  QT_LESS_EQUAL, QT_NOT, QT_SQRT, QT_EXECUTE,
  QT_ONC_STREAM, QT_ITERATOR, QT_OPERATION, QT_BINARY_OPERATION,
  QT_BINARY_INDUCE, QT_GROUP_ITERATOR, QT_IDENT, QT_NARY_OPERATION,
  QT_UNARY_OPERATION, QT_CONDENSE, QT_UNARY_INDUCE, QT_ABS,
  QT_EXP, QT_LOG, QT_LN, QT_SIN,
  QT_COS, QT_TAN, QT_SINH, QT_COSH,
  QT_TANH, QT_ARCSIN, QT_ARCCOS, QT_ARCTAN,
  QT_REALPART, QT_IMAGINARPART, QT_CAST, QT_CSE_ROOT,
  QT_DOMAIN_OPERATION, QT_ALL, QT_SOME, QT_COUNTCELLS,
  QT_ADDCELLS, QT_AVGCELLS, QT_MINCELLS, QT_MAXCELLS,
  QT_MDD_VAR, QT_MDD_STREAM, QT_CONST, QT_DOT,
  QT_CONVERSION, QT_OID, QT_INTERVALOP, QT_MINTERVALOP,
  QT_POINTOP, QT_LO, QT_HI, QT_SDOM,
  QT_SHIFT, QT_EXTEND, QT_MARRAYOP, QT_CONDENSEOP,
  QT_SCALE, QT_OVERLAY, QT_BIT, QT_PYRAMID,
  QT_ENCODE, QT_CONCAT, QT_CASEOP, QT_INFO,
  QT_LAST_NODE_TYPE
}
 
enum  QtAreaType { QT_AREA_MDD, QT_AREA_SCALAR }
 
enum  QtChildType { QT_DIRECT_CHILDS, QT_LEAF_NODES, QT_ALL_NODES }
 
typedef std::vector< QtData * > QtDataList
 list of QtData pointers More...
 
typedef std::vector
< QtTrimElement * > 
QtTrimList
 list of QtTrimData structures More...
 
typedef std::list< QtNode * > QtNodeList
 list of QtNode pointers More...
 
typedef std::vector
< QtOperation * > 
QtOperationList
 list of QtOperation pointers More...
 
- Static Public Attributes inherited from QtNode
static const int QtNodes
 number of QtNodeTypes More...
 
static const QtNodeType QtRoot
 the root of the inheritance tree More...
 
static const QtNodeType QtInheritance [][2]
 the inheritance relations list More...
 
- Protected Member Functions inherited from QtNode
void startTimer (const char *name)
 start node timer (called at evaluation time) More...
 
void stopTimer ()
 stop timer (at end of evaluation) More...
 
void pauseTimer ()
 pause More...
 
void resumeTimer ()
 resume More...
 
std::string getEvaluationTime ()
 get elapsed time if timer was started, returns a string e.g. "15 usecs" More...
 
- Protected Attributes inherited from QtIterator
QtONCStreamListinputs
 list of input streams More...
 
- Protected Attributes inherited from QtONCStream
QtTypeTuple dataStreamType
 result type of the node More...
 
- Protected Attributes inherited from QtNode
ParseInfo parseInfo
 attribute for parser info More...
 

Constructor & Destructor Documentation

QtSelectionIterator::QtSelectionIterator ( )

default constructor

QtSelectionIterator::QtSelectionIterator ( QtNode node)

constructor getting a pointer to the parent

virtual QtSelectionIterator::~QtSelectionIterator ( )
virtual

virtual destructor

Member Function Documentation

virtual const QtTypeTuple& QtSelectionIterator::checkType ( )
virtual

type checking

Implements QtONCStream.

virtual QtNodeList* QtSelectionIterator::getChilds ( QtChildType  flag)
virtual

return childs of the node

Reimplemented from QtIterator.

QtOperation* QtSelectionIterator::getConditionTree ( )
inline
virtual const QtNodeType QtSelectionIterator::getNodeType ( ) const
inlinevirtual

method for identification of nodes

Reimplemented from QtNode.

QtDataList* QtSelectionIterator::next ( )
virtual

Implements QtONCStream.

virtual void QtSelectionIterator::printAlgebraicExpression ( std::ostream &  s = std::cout)
virtual

prints the algebraic expression

Reimplemented from QtIterator.

virtual void QtSelectionIterator::printTree ( int  tab,
std::ostream &  s = std::cout,
QtChildType  mode = QT_ALL_NODES 
)
virtual

optimizing load access

Trigger load optimization in the condition tree and pass the optimization step to the input streams.prints the tree

Reimplemented from QtIterator.

void QtSelectionIterator::setConditionTree ( QtOperation operation)
inline
virtual void QtSelectionIterator::setInput ( QtOperation child,
QtOperation input 
)
inlinevirtual

method for query rewrite

Reimplemented from QtNode.


The documentation for this class was generated from the following file: