bufferiterator.h File Reference

Header file for bufferiterator.cpp. More...

#include <vector>
#include <stack>
#include "buffernode.h"
#include "streampreprocessor.h"
#include "tagnode.h"
#include "pathstepattributeposition.h"
#include "runtimeexception.h"

Include dependency graph for bufferiterator.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BufferIterator
 Represents iterator over nodes stored in buffer for a given path. More...

Defines

#define READ_UP_TO_CLOSE_BASE   0
 Predefined variable for use as first argument of method getNext().
#define READ_UP_TO_CLOSE_CONTEXT   1
 Predefined variable for use as first argument of method getNext().
#define READ_UP_TO_CLOSE_NONE   2
 Predefined variable for use as first argument of method getNext().
#define LOCK_CONTEXT_NO_CLEAR   10
 Predefined variable for use as second argument of method getNext().
#define LOCK_CONTEXT_LAST_CLEAR   11
 Predefined variable for use as second argument of method getNext().
#define LOCK_CONTEXT_ALWAYS_CLEAR   12
 Predefined variable for use as second argument of method getNext().
#define LOCK_NONE_NO_CLEAR   13
 Predefined variable for use as second argument of method getNext().
#define BIT_DEBUG_MODE_FULL   0
 Predefined variable for use as argument of method debugPrint().
#define BIT_DEBUG_MODE_PARTIAL   1
 Predefined variable for use as argument of method debugPrint().
#define BIT_DEBUG_MODE_SIMPLE   2
 Predefined variable for use as argument of method debugPrint().
#define READ_UP_TO_CLOSE_BASE   0
#define READ_UP_TO_CLOSE_CONTEXT   1
#define READ_UP_TO_CLOSE_NONE   2
#define LOCK_CONTEXT_NO_CLEAR   10
#define LOCK_CONTEXT_LAST_CLEAR   11
#define LOCK_CONTEXT_ALWAYS_CLEAR   12
#define LOCK_NONE_NO_CLEAR   13
#define BIT_DEBUG_MODE_FULL   0
#define BIT_DEBUG_MODE_PARTIAL   1
#define BIT_DEBUG_MODE_SIMPLE   2


Detailed Description

Header file for bufferiterator.cpp.

Header file specifying constructors, destructor and functions for bufferiterator.cpp.

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition in file bufferiterator.h.


Define Documentation

#define BIT_DEBUG_MODE_FULL   0

Predefined variable for use as argument of method debugPrint().

Predefined variable for use as argument of method debugPrint(), which indicates to output all extracted informations of the entered PathExpression and stored nodes, whereas BufferNode will be outputted in debug mode themselves.

Definition at line 119 of file bufferiterator.h.

Referenced by BufferIterator::debugPrint().

#define BIT_DEBUG_MODE_PARTIAL   1

Predefined variable for use as argument of method debugPrint().

Predefined variable for use as argument of method debugPrint(), which indicates to output all extracted informations of the entered PathExpression and stored nodes, whereas BufferNode will be outputted in normal mode themselves.

Definition at line 127 of file bufferiterator.h.

Referenced by BufferIterator::debugPrint().

#define BIT_DEBUG_MODE_SIMPLE   2

Predefined variable for use as argument of method debugPrint().

Predefined variable for use as argument of method debugPrint(), which indicates to output only the entered PathExpression and stored nodes, whereas BufferNode will be outputted in normal mode themselves. This is the default behaviour and assumed if method debugPrint() is invoked without any arguments.

Definition at line 136 of file bufferiterator.h.

#define LOCK_CONTEXT_ALWAYS_CLEAR   12

Predefined variable for use as second argument of method getNext().

Predefined variable for use as second argument of method getNext(), which locks the current returned node of method getNext() and invokes method clear() on each returned BufferNode after invocation of method unlock().

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 101 of file bufferiterator.h.

Referenced by AggregateFunctVarSampExpression::calculateValue(), AggregateFunctVarPopExpression::calculateValue(), AggregateFunctSumExpression::calculateValue(), AggregateFunctStdDevSampExpression::calculateValue(), AggregateFunctStdDevPopExpression::calculateValue(), AggregateFunctMinExpression::calculateValue(), AggregateFunctMedianExpression::calculateValue(), AggregateFunctMaxExpression::calculateValue(), AggregateFunctCountExpression::calculateValue(), AggregateFunctAvgExpression::calculateValue(), SignOffExpression::eval(), ForExpression::eval(), and BufferIterator::getNext().

#define LOCK_CONTEXT_LAST_CLEAR   11

Predefined variable for use as second argument of method getNext().

Predefined variable for use as second argument of method getNext(), which locks the current returned node of method getNext() and invokes method clear() only on the last returned BufferNode after invocation of method unlock(), i.e. invokes method clear() after method getNext() returns NULL.

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 92 of file bufferiterator.h.

#define LOCK_CONTEXT_NO_CLEAR   10

Predefined variable for use as second argument of method getNext().

Predefined variable for use as second argument of method getNext(), which locks the current returned node of method getNext() and does not invoke method clear() on returned BufferNode after invocation of method unlock().

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 82 of file bufferiterator.h.

Referenced by BufferIterator::getNext().

#define LOCK_NONE_NO_CLEAR   13

Predefined variable for use as second argument of method getNext().

Predefined variable for use as second argument of method getNext(), which does not lock the current returned node of method getNext() and does not invoke method clear() on each returned BufferNode after invocation of method unlock(). This is the default behaviour and assumed if method getNext() is invoked without any arguments.

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 111 of file bufferiterator.h.

Referenced by BufferIterator::getNext().

#define READ_UP_TO_CLOSE_BASE   0

Predefined variable for use as first argument of method getNext().

Predefined variable for use as first argument of method getNext(), which forces the StreamPreProcessor to read the input stream up to the closing tag of the BufferNode to which the VarExpression is currently bound.

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 53 of file bufferiterator.h.

Referenced by VarExpression::eval(), and BufferIterator::getNext().

#define READ_UP_TO_CLOSE_CONTEXT   1

Predefined variable for use as first argument of method getNext().

Predefined variable for use as first argument of method getNext(), which forces the StreamPreProcessor to read the input stream up to the closing tag of the context node, which is the BufferNode that will be returned after each invocation of method getNext().

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 63 of file bufferiterator.h.

Referenced by AggregateFunctVarSampExpression::calculateValue(), AggregateFunctVarPopExpression::calculateValue(), AggregateFunctSumExpression::calculateValue(), AggregateFunctStdDevSampExpression::calculateValue(), AggregateFunctStdDevPopExpression::calculateValue(), AggregateFunctMinExpression::calculateValue(), AggregateFunctMedianExpression::calculateValue(), AggregateFunctMaxExpression::calculateValue(), AggregateFunctAvgExpression::calculateValue(), VarStepExpression::eval(), BufferIterator::getNext(), VarStepExpression::getNextValue(), and VarExpression::getNextValue().

#define READ_UP_TO_CLOSE_NONE   2

Predefined variable for use as first argument of method getNext().

Predefined variable for use as first argument of method getNext(), which forces the StreamPreProcessor to read the input stream only up to the node which is needed/returned and not more. This is the default behaviour and assumed if method getNext() is invoked without any arguments.

Note:
Ensure that method getNext() is invoked in correct argument order!

Definition at line 73 of file bufferiterator.h.

Referenced by AggregateFunctCountExpression::calculateValue(), SignOffExpression::eval(), and ForExpression::eval().


Generated on Sun May 24 20:20:03 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9