Skip to content

Unparser_Opt

unparser_opt.h This class contains all options we want to have available when generating C++ code

Synopsis

Declared in <src/backend/unparser/languageIndependenceSupport/unparser_opt.h>

class Unparser_Opt;

Description

Controls the printing of: auto_opt - "auto" in front of variable declarations linefile_opt - emission of #line directives overload_opt - overloaded operators for non-primitive types. For example, prints out "+" instead of "operator+" boolnum_opt - booleans as numbers (0 and 1) to designate false and true or as words ("false" and "true") themselves this_opt - "this" in from of data or function members debug_opt - debugging information to standard output!

Member Functions

Name Description
Unparser_Opt
Unparser_Opt(); [constructor]
This class controls the final unparsing of the AST
~Unparser_Opt
~Unparser_Opt(); [destructor]
Destructor
get_auto_opt
bool get_auto_opt();
get_debug_opt
bool get_debug_opt();
get_linefile_opt
bool get_linefile_opt();
get_num_opt
bool get_num_opt();
get_overload_opt
bool get_overload_opt();
get_this_opt
bool get_this_opt();
get_unparse_includes_opt
bool get_unparse_includes_opt();
set_linefile_opt
void set_linefile_opt(bool opt);
set_this_opt
void set_this_opt(bool opt);

Private Data Members

Name
auto_opt
boolnum_opt
debug_opt
linefile_opt
overload_opt
this_opt
unparse_includes_opt

Created with MrDocs