Polly 20.0.0git
|
#include <cpp.h>
Public Member Functions | |
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) |
Public Attributes | |
std::ostream & | os |
const isl_class & | clazz |
const std::string | cppstring |
cpp_generator & | generator |
const bool | declarations |
cpp_generator::class_printer::class_printer | ( | std::ostream & | os, |
const isl_class & | clazz, | ||
cpp_generator & | generator, | ||
bool | declarations | ||
) |
ParmVarDecl * cpp_generator::class_printer::get_param | ( | FunctionDecl * | fd, |
int | pos, | ||
const std::vector< bool > & | convert | ||
) |
Definition at line 567 of file cpp.cc.
References generator::conversions, and pos().
bool cpp_generator::class_printer::next_variant | ( | FunctionDecl * | fd, |
std::vector< bool > & | convert | ||
) |
Definition at line 331 of file cpp.cc.
References generator::conversions, n, and type.
void cpp_generator::class_printer::print_constructors | ( | ) |
Definition at line 277 of file cpp.cc.
References clazz, isl_class::constructors, and print_method().
void cpp_generator::class_printer::print_descendent_overloads | ( | FunctionDecl * | fd, |
const std::string & | name | ||
) |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in plain_cpp_generator::decl_printer, plain_cpp_generator::impl_printer, and template_cpp_generator::class_printer.
Referenced by print_constructors().
void cpp_generator::class_printer::print_method_group | ( | const function_set & | methods, |
const std::string & | name | ||
) |
Definition at line 466 of file cpp.cc.
References has_single_isl_argument(), name, and single_local().
void cpp_generator::class_printer::print_method_header | ( | const Method & | method, |
const cpp_type_printer & | type_printer | ||
) |
Definition at line 620 of file cpp.cc.
References arg, cpp_type_printer::class_type(), Method::constructor, Method::fd, Method::get_param(), Method::kind, Method::member_method, Method::name, name, cpp_type_printer::param(), Method::param_needs_copy(), Method::print_cpp_arg_list(), cpp_type_printer::return_type(), Method::static_method, str, and type.
Referenced by template_cpp_generator::class_printer::print_method_header().
void cpp_generator::class_printer::print_method_variants | ( | FunctionDecl * | fd, |
const std::string & | name | ||
) |
Definition at line 375 of file cpp.cc.
References Method::clazz, isl_class::copied_from, Method::fd, Method::kind, Method::member_method, Method::name, name, Method::num_params(), and pos().
void cpp_generator::class_printer::print_set_enums | ( | FunctionDecl * | fd | ) |
|
pure virtual |
Implemented in plain_cpp_generator::plain_printer, and template_cpp_generator::class_printer.
const isl_class& cpp_generator::class_printer::clazz |
Definition at line 184 of file cpp.h.
Referenced by print_constructors(), and plain_cpp_generator::decl_printer::print_subclass_type().
const std::string cpp_generator::class_printer::cppstring |
Definition at line 185 of file cpp.h.
Referenced by plain_cpp_generator::print_class(), plain_cpp_generator::print_class_impl(), and plain_cpp_generator::decl_printer::print_subclass_type().
cpp_generator& cpp_generator::class_printer::generator |
std::ostream& cpp_generator::class_printer::os |
Definition at line 183 of file cpp.h.
Referenced by plain_cpp_generator::decl_printer::print_subclass_type().