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

#include <cpp.h>

Inheritance diagram for ConversionMethod:
Inheritance graph
[legend]

Public Member Functions

 ConversionMethod (const Method &method, const std::string &this_type, const std::function< clang::ParmVarDecl *(int pos)> &get_param)
 
 ConversionMethod (const Method &method, const std::string &this_type)
 
 ConversionMethod (const Method &method, const std::function< clang::ParmVarDecl *(int pos)> &get_param)
 
virtual clang::ParmVarDecl * get_param (int pos) const override
 
void print_call (std::ostream &os, const std::string &ns) const
 
- Public Member Functions inherited from NoCopyMethod
 NoCopyMethod (const Method &method)
 
virtual bool param_needs_copy (int pos) const override
 
- Public Member Functions inherited from Method
 Method (const isl_class &clazz, FunctionDecl *fd, const std::string &name)
 
 Method (const isl_class &clazz, FunctionDecl *fd)
 
int c_num_params () const
 
virtual int num_params () const
 
virtual bool param_needs_copy (int pos) const
 
virtual clang::ParmVarDecl * get_param (int pos) const
 
virtual void print_param_use (ostream &os, int pos) const
 
bool is_subclass_mutator () const
 
void on_fd_arg_list (int start, int end, const list_combiner &combiner, const std::function< void(int i, int arg)> &on_arg) const
 
void print_fd_arg_list (std::ostream &os, int start, int end, const std::function< void(int i, int arg)> &print_arg) const
 
void on_cpp_arg_list (const list_combiner &combiner, const std::function< void(int i, int arg)> &on_arg) const
 
void on_cpp_arg_list (const std::function< void(int i, int arg)> &on_arg) const
 
void print_cpp_arg_list (std::ostream &os, const std::function< void(int i, int arg)> &print_arg) const
 

Public Attributes

const std::string this_type
 
const std::function< clang::ParmVarDecl *(int pos)> get_param_fn
 
- Public Attributes inherited from Method
const isl_classclazz
 
FunctionDecl *const fd
 
const std::string name
 
enum Kind kind
 
const std::vector< ParmVarDecl * > callbacks
 

Additional Inherited Members

- Public Types inherited from Method
enum  Kind { static_method , member_method , constructor }
 
- Static Public Member Functions inherited from Method
static list_combiner print_combiner (std::ostream &os)
 
static list_combiner empty_combiner ()
 
static void on_arg_list (int start, int end, const list_combiner &combiner, const std::function< bool(int i)> &on_arg_skip_next)
 
static void print_arg_list (std::ostream &os, int start, int end, const std::function< bool(int i)> &print_arg_skip_next)
 

Detailed Description

Definition at line 97 of file cpp.h.

Constructor & Destructor Documentation

◆ ConversionMethod() [1/3]

ConversionMethod::ConversionMethod ( const Method method,
const std::string &  this_type,
const std::function< clang::ParmVarDecl *(int pos)> &  get_param 
)

Definition at line 1186 of file cpp.cc.

◆ ConversionMethod() [2/3]

ConversionMethod::ConversionMethod ( const Method method,
const std::string &  this_type 
)

Definition at line 1202 of file cpp.cc.

References Method::get_param(), and pos().

◆ ConversionMethod() [3/3]

ConversionMethod::ConversionMethod ( const Method method,
const std::function< clang::ParmVarDecl *(int pos)> &  get_param 
)

Definition at line 1217 of file cpp.cc.

Member Function Documentation

◆ get_param()

clang::ParmVarDecl * ConversionMethod::get_param ( int  pos) const
overridevirtual

Reimplemented from Method.

Definition at line 1244 of file cpp.cc.

References get_param_fn, and pos().

Referenced by plain_cpp_generator::impl_printer::print_method().

◆ print_call()

void ConversionMethod::print_call ( std::ostream &  os,
const std::string &  ns 
) const

Member Data Documentation

◆ get_param_fn

const std::function<clang::ParmVarDecl *(int pos)> ConversionMethod::get_param_fn

Definition at line 108 of file cpp.h.

Referenced by get_param().

◆ this_type

const std::string ConversionMethod::this_type

Definition at line 107 of file cpp.h.

Referenced by print_call().


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