Polly 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
isl_class Struct Reference

#include <generator.h>

Public Member Functions

bool first_arg_matches_class (FunctionDecl *method) const
 
bool is_static (FunctionDecl *method) const
 
bool is_type_subclass () const
 
string base_method_name (FunctionDecl *fd) const
 
bool is_get_method_name (FunctionDecl *fd, const string &name) const
 
bool is_get_method (FunctionDecl *fd) const
 
string method_name (FunctionDecl *fd) const
 
string persistent_callback_name (FunctionDecl *fd) const
 
bool has_persistent_callbacks () const
 

Static Public Member Functions

static string name_without_type_suffixes (FunctionDecl *fd)
 

Public Attributes

string name
 
string superclass_name
 
string subclass_name
 
RecordDecl * type
 
function_set constructors
 
set< FunctionDecl * > persistent_callbacks
 
map< FunctionDecl *, vector< set_enum > > set_enums
 
map< string, function_setmethods
 
map< int, string > type_subclasses
 
FunctionDecl * fn_type
 
FunctionDecl * fn_to_str
 
FunctionDecl * fn_copy
 
FunctionDecl * fn_free
 
std::map< clang::FunctionDecl *, const isl_class & > copied_from
 
std::map< clang::FunctionDecl *, int > copy_depth
 
std::map< std::string, clang::ParmVarDecl * > construction_types
 

Static Public Attributes

static const char * get_prefix = "get_"
 
static const char * set_callback_prefix = "set_"
 

Detailed Description

Definition at line 80 of file generator.h.

Member Function Documentation

◆ base_method_name()

string isl_class::base_method_name ( FunctionDecl *  fd) const
inline

◆ first_arg_matches_class()

bool isl_class::first_arg_matches_class ( FunctionDecl *  method) const

Definition at line 51 of file generator.cc.

References generator::extract_type(), generator::is_isl_type(), name, and type.

Referenced by is_static(), and single_local().

◆ has_persistent_callbacks()

bool isl_class::has_persistent_callbacks ( ) const
inline

◆ is_get_method()

bool isl_class::is_get_method ( FunctionDecl *  fd) const
inline

Definition at line 119 of file generator.h.

References base_method_name(), and is_get_method_name().

Referenced by python_generator::print_method().

◆ is_get_method_name()

bool isl_class::is_get_method_name ( FunctionDecl *  fd,
const string &  name 
) const

Definition at line 873 of file generator.cc.

References get_prefix, is_static(), name, and prefixcmp().

Referenced by is_get_method(), and method_name().

◆ is_static()

bool isl_class::is_static ( FunctionDecl *  method) const

Definition at line 73 of file generator.cc.

References copied_from, and first_arg_matches_class().

Referenced by is_get_method_name(), and generator::is_static().

◆ is_type_subclass()

bool isl_class::is_type_subclass ( ) const
inline

◆ method_name()

string isl_class::method_name ( FunctionDecl *  fd) const

◆ name_without_type_suffixes()

string isl_class::name_without_type_suffixes ( FunctionDecl *  fd)
static

Definition at line 845 of file generator.cc.

References generator::drop_suffix(), generator::is_overload(), name, type, and type_suffix().

Referenced by base_method_name().

◆ persistent_callback_name()

string isl_class::persistent_callback_name ( FunctionDecl *  fd) const
inline

Member Data Documentation

◆ construction_types

std::map<std::string, clang::ParmVarDecl *> isl_class::construction_types

Definition at line 97 of file generator.h.

Referenced by cpp_generator::set_class_construction_types().

◆ constructors

function_set isl_class::constructors

◆ copied_from

std::map<clang::FunctionDecl *, const isl_class &> isl_class::copied_from

◆ copy_depth

std::map<clang::FunctionDecl *, int> isl_class::copy_depth

Definition at line 96 of file generator.h.

Referenced by copy_depth(), and copy_method().

◆ fn_copy

FunctionDecl* isl_class::fn_copy

Definition at line 92 of file generator.h.

Referenced by python_generator::print_method_types().

◆ fn_free

FunctionDecl* isl_class::fn_free

Definition at line 93 of file generator.h.

Referenced by python_generator::print_method_types().

◆ fn_to_str

FunctionDecl* isl_class::fn_to_str

◆ fn_type

FunctionDecl* isl_class::fn_type

◆ get_prefix

const char * isl_class::get_prefix = "get_"
static

Definition at line 115 of file generator.h.

Referenced by is_get_method_name(), and method_name().

◆ methods

map<string, function_set> isl_class::methods

◆ name

string isl_class::name

◆ persistent_callbacks

set<FunctionDecl *> isl_class::persistent_callbacks

◆ set_callback_prefix

const char * isl_class::set_callback_prefix = "set_"
static

Definition at line 125 of file generator.h.

Referenced by persistent_callback_name(), and sets_persistent_callback().

◆ set_enums

map<FunctionDecl *, vector<set_enum> > isl_class::set_enums

◆ subclass_name

string isl_class::subclass_name

◆ superclass_name

string isl_class::superclass_name

◆ type

RecordDecl* isl_class::type

◆ type_subclasses

map<int, string> isl_class::type_subclasses

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