Polly 20.0.0git
Public Member Functions | List of all members
plain_cpp_generator::impl_printer Struct Reference

#include <plain_cpp.h>

Inheritance diagram for plain_cpp_generator::impl_printer:
Inheritance graph
[legend]

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_generatorgenerator
 
- Public Attributes inherited from cpp_generator::class_printer
std::ostream & os
 
const isl_classclazz
 
const std::string cppstring
 
cpp_generatorgenerator
 
const bool declarations
 

Detailed Description

Definition at line 132 of file plain_cpp.h.

Constructor & Destructor Documentation

◆ impl_printer()

plain_cpp_generator::impl_printer::impl_printer ( std::ostream &  os,
const isl_class clazz,
plain_cpp_generator generator 
)
inline

Definition at line 135 of file plain_cpp.h.

Member Function Documentation

◆ print_arg_conversion()

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.

◆ print_argument_validity_check()

void plain_cpp_generator::impl_printer::print_argument_validity_check ( const Method method)

◆ print_callback_body()

void plain_cpp_generator::impl_printer::print_callback_body ( int  indent,
ParmVarDecl *  param,
const string &  name 
)

◆ print_callback_local()

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().

◆ print_check_ptr()

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().

◆ print_check_ptr_end()

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().

◆ print_check_ptr_start()

void plain_cpp_generator::impl_printer::print_check_ptr_start ( const char *  ptr)

Definition at line 770 of file plain_cpp.cc.

◆ print_class_factory()

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().

◆ print_copy_assignment()

void plain_cpp_generator::impl_printer::print_copy_assignment ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1099 of file plain_cpp.cc.

References name, and osprintf().

◆ print_ctx()

void plain_cpp_generator::impl_printer::print_ctx ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1242 of file plain_cpp.cc.

References name, and osprintf().

◆ print_destructor()

void plain_cpp_generator::impl_printer::print_destructor ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1118 of file plain_cpp.cc.

References name, and osprintf().

◆ print_downcast()

void plain_cpp_generator::impl_printer::print_downcast ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1199 of file plain_cpp.cc.

References osprintf(), and print_throw_NULL_input().

◆ print_exceptional_execution_check()

void plain_cpp_generator::impl_printer::print_exceptional_execution_check ( const Method method)

◆ print_get_method()

void plain_cpp_generator::impl_printer::print_get_method ( FunctionDecl *  fd)
overridevirtual

Implements cpp_generator::class_printer.

Definition at line 1297 of file plain_cpp.cc.

References name, and osprintf().

◆ print_id_constructor_user()

void plain_cpp_generator::impl_printer::print_id_constructor_user ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1036 of file plain_cpp.cc.

References print_throw_last_error().

◆ print_id_user()

void plain_cpp_generator::impl_printer::print_id_user ( bool  optional)
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1070 of file plain_cpp.cc.

◆ print_method() [1/2]

void plain_cpp_generator::impl_printer::print_method ( const ConversionMethod method)
overridevirtual

◆ print_method() [2/2]

void plain_cpp_generator::impl_printer::print_method ( const Method method)
overridevirtual

◆ print_method_return()

void plain_cpp_generator::impl_printer::print_method_return ( const Method method)

◆ print_method_separator()

void plain_cpp_generator::impl_printer::print_method_separator ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1258 of file plain_cpp.cc.

◆ print_on_error_continue()

void plain_cpp_generator::impl_printer::print_on_error_continue ( )

Definition at line 1418 of file plain_cpp.cc.

References osprintf().

◆ print_persistent_callbacks()

void plain_cpp_generator::impl_printer::print_persistent_callbacks ( )
overridevirtual

◆ print_protected_constructors()

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().

◆ print_ptr()

void plain_cpp_generator::impl_printer::print_ptr ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 1155 of file plain_cpp.cc.

References name, and osprintf().

◆ print_public_constructors()

void plain_cpp_generator::impl_printer::print_public_constructors ( )
overridevirtual

Implements plain_cpp_generator::plain_printer.

Definition at line 873 of file plain_cpp.cc.

References osprintf(), and cpp_generator::type2cpp().

◆ print_save_ctx() [1/2]

void plain_cpp_generator::impl_printer::print_save_ctx ( const Method method)

◆ print_save_ctx() [2/2]

void plain_cpp_generator::impl_printer::print_save_ctx ( const std::string &  ctx)

Definition at line 1365 of file plain_cpp.cc.

◆ print_set_persistent_callback()

void plain_cpp_generator::impl_printer::print_set_persistent_callback ( const Method method)

◆ print_stream_insertion()

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().

◆ print_wrapped_call()

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().

◆ print_wrapped_call_checked()

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().


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