Polly 20.0.0git
|
#include <plain_cpp.h>
Public Member Functions | |
impl_printer (std::ostream &os, const isl_class &clazz, plain_cpp_generator &generator) | |
void | print_arg_conversion (ParmVarDecl *dst, ParmVarDecl *src) |
virtual void | print_method (const Method &method) override |
virtual void | print_method (const ConversionMethod &method) override |
virtual void | print_get_method (FunctionDecl *fd) override |
void | print_check_ptr (const char *ptr) |
void | print_check_ptr_start (const char *ptr) |
void | print_check_ptr_end (const char *ptr) |
void | print_class_factory () |
void | print_protected_constructors () |
virtual void | print_public_constructors () override |
virtual void | print_copy_assignment () override |
virtual void | print_destructor () override |
virtual void | print_ptr () override |
virtual void | print_downcast () override |
virtual void | print_ctx () override |
virtual void | print_method_separator () override |
void | print_set_persistent_callback (const Method &method) |
virtual void | print_persistent_callbacks () override |
void | print_argument_validity_check (const Method &method) |
void | print_save_ctx (const std::string &ctx) |
void | print_save_ctx (const Method &method) |
void | print_on_error_continue () |
void | print_exceptional_execution_check (const Method &method) |
void | print_method_return (const Method &method) |
void | print_stream_insertion () |
void | print_wrapped_call_checked (int indent, const std::string &call) |
void | print_wrapped_call (int indent, const std::string &call, QualType rtype) |
void | print_callback_body (int indent, ParmVarDecl *param, const string &name) |
void | print_callback_local (ParmVarDecl *param) |
virtual void | print_id_constructor_user () override |
virtual void | print_id_user (bool optional) override |
Public Member Functions inherited from plain_cpp_generator::plain_printer | |
plain_printer (std::ostream &os, const isl_class &clazz, plain_cpp_generator &generator, bool is_declaration) | |
void | print_persistent_callback_prototype (FunctionDecl *method) |
void | print_persistent_callback_setter_prototype (FunctionDecl *method) |
void | print_full_method_header (const Method &method) |
void | print_callback_data_decl (ParmVarDecl *param, const string &name) |
virtual bool | want_descendent_overloads (const function_set &methods) override |
virtual void | print_public_constructors ()=0 |
virtual void | print_copy_assignment ()=0 |
virtual void | print_destructor ()=0 |
virtual void | print_ptr ()=0 |
virtual void | print_downcast ()=0 |
virtual void | print_ctx ()=0 |
virtual void | print_method_separator ()=0 |
virtual void | print_persistent_callbacks ()=0 |
void | print_public_methods () |
void | print_id_constructor_user_header () |
void | print_id_user_header (bool optional) |
virtual void | print_id_constructor_user ()=0 |
virtual void | print_id_user (bool optional)=0 |
void | print_special_id () |
void | print_special () |
Public Member Functions inherited from cpp_generator::class_printer | |
class_printer (std::ostream &os, const isl_class &clazz, cpp_generator &generator, bool declarations) | |
void | print_constructors () |
void | print_methods () |
bool | next_variant (FunctionDecl *fd, std::vector< bool > &convert) |
void | print_method_variants (FunctionDecl *fd, const std::string &name) |
virtual bool | want_descendent_overloads (const function_set &methods)=0 |
void | print_descendent_overloads (FunctionDecl *fd, const std::string &name) |
void | print_method_group (const function_set &methods, const std::string &name) |
virtual void | print_method (const Method &method)=0 |
virtual void | print_method (const ConversionMethod &method)=0 |
virtual void | print_get_method (FunctionDecl *fd)=0 |
void | print_set_enums (FunctionDecl *fd) |
void | print_set_enums () |
ParmVarDecl * | get_param (FunctionDecl *fd, int pos, const std::vector< bool > &convert) |
void | print_method_header (const Method &method, const cpp_type_printer &type_printer) |
Additional Inherited Members | |
Public Attributes inherited from plain_cpp_generator::plain_printer | |
plain_cpp_generator & | generator |
Public Attributes inherited from cpp_generator::class_printer | |
std::ostream & | os |
const isl_class & | clazz |
const std::string | cppstring |
cpp_generator & | generator |
const bool | declarations |
Definition at line 132 of file plain_cpp.h.
|
inline |
Definition at line 135 of file plain_cpp.h.
void plain_cpp_generator::impl_printer::print_arg_conversion | ( | ParmVarDecl * | dst, |
ParmVarDecl * | src | ||
) |
Definition at line 965 of file plain_cpp.cc.
References generator::is_isl_type(), name, and type.
void plain_cpp_generator::impl_printer::print_argument_validity_check | ( | const Method & | method | ) |
Definition at line 1324 of file plain_cpp.cc.
References Method::fd, generator::is_isl_ctx(), generator::is_isl_type(), Method::kind, Method::member_method, n, name, Method::num_params(), osprintf(), print_throw_NULL_input(), and type.
void plain_cpp_generator::impl_printer::print_callback_body | ( | int | indent, |
ParmVarDecl * | param, | ||
const string & | name | ||
) |
Definition at line 1927 of file plain_cpp.cc.
References generator::callback_takes_argument(), generator::extract_prototype(), osprintf(), and to_string().
void plain_cpp_generator::impl_printer::print_callback_local | ( | ParmVarDecl * | param | ) |
Definition at line 2011 of file plain_cpp.cc.
References generator::extract_prototype(), and osprintf().
void plain_cpp_generator::impl_printer::print_check_ptr | ( | const char * | ptr | ) |
Definition at line 756 of file plain_cpp.cc.
References osprintf(), and print_throw_NULL_input().
void plain_cpp_generator::impl_printer::print_check_ptr_end | ( | const char * | ptr | ) |
Definition at line 786 of file plain_cpp.cc.
References osprintf(), and print_throw_last_error().
void plain_cpp_generator::impl_printer::print_check_ptr_start | ( | const char * | ptr | ) |
Definition at line 770 of file plain_cpp.cc.
void plain_cpp_generator::impl_printer::print_class_factory | ( | ) |
Definition at line 813 of file plain_cpp.cc.
References name, and osprintf().
Referenced by plain_cpp_generator::print_class_impl().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1099 of file plain_cpp.cc.
References name, and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1242 of file plain_cpp.cc.
References name, and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1118 of file plain_cpp.cc.
References name, and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1199 of file plain_cpp.cc.
References osprintf(), and print_throw_NULL_input().
void plain_cpp_generator::impl_printer::print_exceptional_execution_check | ( | const Method & | method | ) |
Definition at line 1472 of file plain_cpp.cc.
References Method::callbacks, Method::fd, generator::is_isl_neg_error(), generator::is_isl_type(), name, osprintf(), print_persistent_callback_exceptional_execution_check(), and print_throw_last_error().
|
overridevirtual |
Implements cpp_generator::class_printer.
Definition at line 1297 of file plain_cpp.cc.
References name, and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1036 of file plain_cpp.cc.
References print_throw_last_error().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1070 of file plain_cpp.cc.
|
overridevirtual |
Implements cpp_generator::class_printer.
Definition at line 996 of file plain_cpp.cc.
References arg, die, Method::fd, ConversionMethod::get_param(), Method::kind, Method::member_method, osprintf(), ConversionMethod::print_call(), and Method::print_cpp_arg_list().
|
overridevirtual |
Implements cpp_generator::class_printer.
Definition at line 924 of file plain_cpp.cc.
References arg, Method::c_num_params(), Method::callbacks, Method::constructor, Method::fd, Method::kind, osprintf(), Method::print_fd_arg_list(), and Method::print_param_use().
void plain_cpp_generator::impl_printer::print_method_return | ( | const Method & | method | ) |
Definition at line 1595 of file plain_cpp.cc.
References Method::fd, generator::gives(), generator::is_isl_neg_error(), generator::is_isl_stat(), generator::is_isl_type(), generator::is_mutator(), generator::is_string(), Method::is_subclass_mutator(), and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1258 of file plain_cpp.cc.
void plain_cpp_generator::impl_printer::print_on_error_continue | ( | ) |
Definition at line 1418 of file plain_cpp.cc.
References osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1265 of file plain_cpp.cc.
References callback_name(), osprintf(), and cpp_generator::type2cpp().
void plain_cpp_generator::impl_printer::print_protected_constructors | ( | ) |
Definition at line 841 of file plain_cpp.cc.
References name, osprintf(), and cpp_generator::type2cpp().
Referenced by plain_cpp_generator::print_class_impl().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 1155 of file plain_cpp.cc.
References name, and osprintf().
|
overridevirtual |
Implements plain_cpp_generator::plain_printer.
Definition at line 873 of file plain_cpp.cc.
References osprintf(), and cpp_generator::type2cpp().
void plain_cpp_generator::impl_printer::print_save_ctx | ( | const Method & | method | ) |
Definition at line 1382 of file plain_cpp.cc.
References Method::fd, generator::is_isl_ctx(), generator::is_isl_type(), Method::kind, Method::member_method, n, Method::num_params(), and type.
void plain_cpp_generator::impl_printer::print_save_ctx | ( | const std::string & | ctx | ) |
Definition at line 1365 of file plain_cpp.cc.
void plain_cpp_generator::impl_printer::print_set_persistent_callback | ( | const Method & | method | ) |
Definition at line 1538 of file plain_cpp.cc.
References callback_name(), Method::fd, osprintf(), and generator::persistent_callback_arg().
void plain_cpp_generator::impl_printer::print_stream_insertion | ( | ) |
Definition at line 725 of file plain_cpp.cc.
References name, and osprintf().
Referenced by plain_cpp_generator::print_class_impl().
void plain_cpp_generator::impl_printer::print_wrapped_call | ( | int | indent, |
const std::string & | call, | ||
QualType | rtype | ||
) |
Definition at line 1719 of file plain_cpp.cc.
References generator::is_isl_bool(), generator::is_isl_stat(), and osprintf().
void plain_cpp_generator::impl_printer::print_wrapped_call_checked | ( | int | indent, |
const std::string & | call | ||
) |
Definition at line 1674 of file plain_cpp.cc.
References osprintf().