Public Attributes
Zorba_CompilerHints Struct Reference

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

#include <zorba/options.h>

List of all members.

Public Attributes

bool for_serialization_only
 By default, this flag is set to false.
bool lib_module
 Treat the query as a library module.
Zorba_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:
context.cpp, and simple.cpp.

Definition at line 54 of file options.h.


Member Data Documentation

bool Zorba_CompilerHints::for_serialization_only

By default, this flag is set to false.

Applications may set it to true if they plan to execute the query only via one of the methods that serialize the query result.

Definition at line 66 of file options.h.

bool Zorba_CompilerHints::lib_module

Treat the query as a library module.

Definition at line 59 of file options.h.

Zorba_opt_level_t Zorba_CompilerHints::opt_level

The optimization level that is used.

Examples:
simple.cpp.

Definition at line 57 of file options.h.


The documentation for this struct was generated from the following file:
blog comments powered by Disqus