SourceForge.net Logo
ASTNodeEventGenerator Class Reference

#include <EventGenerator.hpp>

Inheritance diagram for ASTNodeEventGenerator:

Public Member Functions

 ASTNodeEventGenerator (const ASTNode *ast, bool preserveNS, bool preserveType)
virtual EventGenerator::Ptr generateEvents (EventHandler *events, DynamicContext *context)
 Returns the result of this expression via the EventHandler provided.
Public Member Functions inherited from EventGenerator
virtual ~EventGenerator ()
Public Member Functions inherited from ReferenceCounted
 ReferenceCounted ()
virtual ~ReferenceCounted ()
void incrementRefCount () const
 Increment the reference count.
virtual void decrementRefCount () const
 Decrement the reference count, deleting if it becomes zero.
unsigned int getRefCount () const

Protected Attributes

const ASTNode * ast_
bool preserveNS_
bool preserveType_
Protected Attributes inherited from ReferenceCounted
unsigned int _ref_count

Additional Inherited Members

Public Types inherited from EventGenerator
typedef RefCountPointer< EventGeneratorPtr
Static Public Member Functions inherited from EventGenerator
static void generateAndTailCall (const EventGenerator::Ptr &generator, EventHandler *events, DynamicContext *context)
static Result createResult (const ASTNode *ast, const QueryPathNode *projection, DynamicContext *context)

Constructor & Destructor Documentation

◆ ASTNodeEventGenerator()

ASTNodeEventGenerator::ASTNodeEventGenerator ( const ASTNode * ast,
bool preserveNS,
bool preserveType )

Member Function Documentation

◆ generateEvents()

virtual EventGenerator::Ptr ASTNodeEventGenerator::generateEvents ( EventHandler * events,
DynamicContext * context )
virtual

Returns the result of this expression via the EventHandler provided.

An EventGenerator may be returned to be called as a tail call optimization

Implements EventGenerator.

Member Data Documentation

◆ ast_

const ASTNode* ASTNodeEventGenerator::ast_
protected

◆ preserveNS_

bool ASTNodeEventGenerator::preserveNS_
protected

◆ preserveType_

bool ASTNodeEventGenerator::preserveType_
protected

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