zorba::XQuery::CompilerHints Struct Reference

Set of hints that can be passed to the query compiler. More...

#include <zorba/xquery.h>

List of all members.

Public Types

enum  opt_level_t { O0, O1 }
 The optimization level used for optimizing the query. More...

Public Member Functions

 CompilerHints ()
 Default constructor for CompilerHints which assigns default values to all hints.

Public Attributes

opt_level_t opt_level
 The optimization level that is used.


Detailed Description

Set of hints that can be passed to the query compiler.

An instance of this class can be passed to the compileQuery function of the Zorba class or the compile function of this class. The members of this class represent hints that are passed to the query compiler. For example, whether optimization of the query should be done (O1) or not (O0).

example_6 in file simple.cpp shows an example how CompilerHints can be used.

Examples:

simple.cpp.

Definition at line 60 of file xquery.h.


Member Enumeration Documentation

enum zorba::XQuery::CompilerHints::opt_level_t

The optimization level used for optimizing the query.

Enumerator:
O0  Don't use any optimization.

O1  Use basic optimizations (e.g. removing sorting, removing duplicate elimination, or constant folding).

Definition at line 63 of file xquery.h.


Constructor & Destructor Documentation

zorba::XQuery::CompilerHints::CompilerHints (  )  [inline]

Default constructor for CompilerHints which assigns default values to all hints.

Default values:

Definition at line 77 of file xquery.h.

References O1, and opt_level.


Member Data Documentation

opt_level_t zorba::XQuery::CompilerHints::opt_level

The optimization level that is used.

Examples:
simple.cpp.

Definition at line 70 of file xquery.h.

Referenced by CompilerHints().


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