SourceForge.net Logo

ResultImpl Class Reference

A lazily evaluated query result. More...

#include <ResultImpl.hpp>

Inheritance diagram for ResultImpl:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ResultImpl ()
virtual Item::Ptr next (DynamicContext *context)=0
 Get the next item from the iterator. Returns null if the is no next value.
virtual void skip ()
 Performs iterator specific skip of results.
virtual bool getEffectiveBooleanValue (DynamicContext *context, const LocationInfo *info)
 Returns the effective boolean value of the sequence. Only works properly before next() has been called.
virtual Sequence toSequence (DynamicContext *context)
 Cast operator to a Sequence. Only works properly before next() has been called.
virtual std::string asString (DynamicContext *context, int indent) const=0
 Debug method to visualise the Result.

Static Public Member Functions

static bool getEffectiveBooleanValue (const Item::Ptr &first, const Item::Ptr &second, DynamicContext *context, const LocationInfo *info)
 Returns the effective boolean value of the sequence.
static std::string getIndent (int indent)

Protected Member Functions

 ResultImpl (const LocationInfo *o)
 Do not allocate this object from a memory manager! It must be created using the heap.

Detailed Description

A lazily evaluated query result.


Constructor & Destructor Documentation

virtual ResultImpl::~ResultImpl (  )  [inline, virtual]

ResultImpl::ResultImpl ( const LocationInfo *  o  )  [inline, protected]

Do not allocate this object from a memory manager! It must be created using the heap.


Member Function Documentation

virtual Item::Ptr ResultImpl::next ( DynamicContext context  )  [pure virtual]

Get the next item from the iterator. Returns null if the is no next value.

virtual void ResultImpl::skip (  )  [inline, virtual]

Performs iterator specific skip of results.

virtual bool ResultImpl::getEffectiveBooleanValue ( DynamicContext context,
const LocationInfo *  info 
) [virtual]

Returns the effective boolean value of the sequence. Only works properly before next() has been called.

static bool ResultImpl::getEffectiveBooleanValue ( const Item::Ptr first,
const Item::Ptr second,
DynamicContext context,
const LocationInfo *  info 
) [static]

Returns the effective boolean value of the sequence.

virtual Sequence ResultImpl::toSequence ( DynamicContext context  )  [virtual]

Cast operator to a Sequence. Only works properly before next() has been called.

virtual std::string ResultImpl::asString ( DynamicContext context,
int  indent 
) const [pure virtual]

Debug method to visualise the Result.

static std::string ResultImpl::getIndent ( int  indent  )  [static]


The documentation for this class was generated from the following file:
Generated on Wed Dec 12 20:16:59 2007 for XQilla Simple API by  doxygen 1.5.1