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

#include <cpp.h>

Inheritance diagram for EnumMethod:
Inheritance graph
[legend]

Public Member Functions

 EnumMethod (const isl_class &clazz, FunctionDecl *fd, const std::string &method_name, const std::string &enum_name)
 
virtual int num_params () const override
 
virtual void print_param_use (ostream &os, 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

std::string enum_name
 
- 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 116 of file cpp.h.

Constructor & Destructor Documentation

◆ EnumMethod()

EnumMethod::EnumMethod ( const isl_class clazz,
FunctionDecl *  fd,
const std::string &  method_name,
const std::string &  enum_name 
)

Definition at line 1271 of file cpp.cc.

Member Function Documentation

◆ num_params()

int EnumMethod::num_params ( ) const
overridevirtual

Reimplemented from Method.

Definition at line 1297 of file cpp.cc.

References Method::num_params().

Referenced by print_param_use().

◆ print_param_use()

void EnumMethod::print_param_use ( ostream &  os,
int  pos 
) const
overridevirtual

Reimplemented from Method.

Definition at line 1283 of file cpp.cc.

References enum_name, num_params(), pos(), and Method::print_param_use().

Member Data Documentation

◆ enum_name

std::string EnumMethod::enum_name

Definition at line 123 of file cpp.h.

Referenced by print_param_use().


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