2#include <clang/AST/Decl.h>
14 set<FunctionDecl *> exported_functions,
15 set<FunctionDecl *> functions) :
16 generator(
SM, exported_types, exported_functions, functions) {}
25 const vector<string> &super);
27 int pos,
bool upcast,
const string &super,
28 const string &
name,
int n);
30 bool first_is_ctx,
int n,
const vector<string> &super);
37 FunctionDecl *method,
const char *fmt);
45 const string &python_name);
47 const string &python_name);
53 vector<string> super);
55 FunctionDecl *method,
const char *fmt,
60 FunctionDecl *method);
64 int value,
const string &
name,
const vector<string> &super);
66 const vector<string> &super);
static bool is_static(const isl_class &clazz, FunctionDecl *method)
map< string, isl_class > classes
python_generator(SourceManager &SM, set< RecordDecl * > &exported_types, set< FunctionDecl * > exported_functions, set< FunctionDecl * > functions)
void print_upcast_constructors(const isl_class &clazz)
void print_argument_checks(const isl_class &clazz, FunctionDecl *fd, int drop_ctx)
void print_type_check(int indent, const string &type, const char *fmt, int pos, bool upcast, const string &super, const string &name, int n)
void print_set_enum(const isl_class &clazz, FunctionDecl *fd, int value, const string &name, const vector< string > &super)
void print_copy(QualType type)
void print_method_header(bool is_static, const string &name, int n_arg)
void print_representation(const isl_class &clazz, const string &python_name)
void print_method_call(int indent, const isl_class &clazz, FunctionDecl *method, const char *fmt, int drop_ctx)
void print_special_constructors(const isl_class &clazz)
void print_method_overload(const isl_class &clazz, FunctionDecl *method)
void print_type_checks(const string &cname, FunctionDecl *method, bool first_is_ctx, int n, const vector< string > &super)
void print_new(const isl_class &clazz, const string &python_name)
void print_get_method(const isl_class &clazz, FunctionDecl *fd)
void print(const isl_class &clazz)
void print_method_arguments(int first, int n_arg)
void print_arg_in_call(FunctionDecl *fd, const char *fmt, int arg, int skip)
void print_method(const isl_class &clazz, FunctionDecl *method, vector< string > super)
void print_copy_callbacks(const isl_class &clazz)
void print_constructor(const isl_class &clazz, FunctionDecl *method)
void print_method_types(const isl_class &clazz)
void print(map< string, isl_class > &classes, set< string > &done)
void print_method_return(int indent, const isl_class &clazz, FunctionDecl *method, const char *fmt)
void print_class_header(const isl_class &clazz, const string &name, const vector< string > &super)
void print_special_methods(const isl_class &clazz)
void print_method_type(FunctionDecl *fd)
void print_restype(FunctionDecl *fd)
void print_callback(ParmVarDecl *param, int arg)
void print_argtypes(FunctionDecl *fd)
std::set< FunctionDecl *, function_name_less > function_set
static int n_arg(struct isl_arg *arg)
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)