Class Unparser_Opt#
Defined in File unparser_opt.h
Class Documentation#
-
class Unparser_Opt#
unparser_opt.h This class contains all options we want to have available when generating C++ code
Controls the printing of: auto_opt - “auto” in front of variable declarations linefile_opt - line and file information printed by Gary_Unparser::output 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
caststring_opt - “const char*” in front of strings debug_opt - debugging information to standard output class_opt - “class” in front of function parameters forced_transformation_format - controls whether or not to use file information when formatting !
Public Functions
-
Unparser_Opt()#
This class controls the final unparsing of the AST.
-
Unparser_Opt(bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)#
-
~Unparser_Opt()#
-
bool get_auto_opt()#
-
void set_auto_opt(bool opt)#
-
bool get_linefile_opt()#
-
void set_linefile_opt(bool opt)#
-
bool get_overload_opt()#
-
void set_overload_opt(bool opt)#
-
bool get_num_opt()#
-
void set_num_opt(bool opt)#
-
bool get_this_opt()#
-
void set_this_opt(bool opt)#
-
bool get_caststring_opt()#
-
void set_caststring_opt(bool opt)#
-
bool get_debug_opt()#
-
void set_debug_opt(bool opt)#
-
bool get_class_opt()#
-
void set_class_opt(bool opt)#
-
bool get_forced_transformation_opt()#
-
void set_forced_transformation_opt(bool opt)#
-
bool get_unparse_includes_opt()#
-
void set_unparse_includes_opt(bool opt)#
-
void display(const std::string &label)#
-
Unparser_Opt()#