Polly 20.0.0git
Public Member Functions | Public Attributes | List of all members
cpp_generator::class_printer Struct Referenceabstract

#include <cpp.h>

Inheritance diagram for cpp_generator::class_printer:
Inheritance graph
[legend]

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_classclazz
 
const std::string cppstring
 
cpp_generatorgenerator
 
const bool declarations
 

Detailed Description

Definition at line 182 of file cpp.h.

Constructor & Destructor Documentation

◆ class_printer()

cpp_generator::class_printer::class_printer ( std::ostream &  os,
const isl_class clazz,
cpp_generator generator,
bool  declarations 
)

Definition at line 1305 of file cpp.cc.

Member Function Documentation

◆ get_param()

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().

◆ next_variant()

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.

◆ print_constructors()

void cpp_generator::class_printer::print_constructors ( )

Definition at line 277 of file cpp.cc.

References clazz, isl_class::constructors, and print_method().

◆ print_descendent_overloads()

void cpp_generator::class_printer::print_descendent_overloads ( FunctionDecl *  fd,
const std::string &  name 
)

Definition at line 441 of file cpp.cc.

References arg, generator::classes, name, pos(), sub(), and type.

◆ print_get_method()

virtual void cpp_generator::class_printer::print_get_method ( FunctionDecl *  fd)
pure virtual

◆ print_method() [1/2]

virtual void cpp_generator::class_printer::print_method ( const ConversionMethod method)
pure virtual

◆ print_method() [2/2]

virtual void cpp_generator::class_printer::print_method ( const Method method)
pure virtual

◆ print_method_group()

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().

◆ print_method_header()

void cpp_generator::class_printer::print_method_header ( const Method method,
const cpp_type_printer type_printer 
)

◆ print_method_variants()

void cpp_generator::class_printer::print_method_variants ( FunctionDecl *  fd,
const std::string &  name 
)

◆ print_methods()

void cpp_generator::class_printer::print_methods ( )

Definition at line 285 of file cpp.cc.

◆ print_set_enums() [1/2]

void cpp_generator::class_printer::print_set_enums ( )

Definition at line 309 of file cpp.cc.

◆ print_set_enums() [2/2]

void cpp_generator::class_printer::print_set_enums ( FunctionDecl *  fd)

Definition at line 297 of file cpp.cc.

References set.

◆ want_descendent_overloads()

virtual bool cpp_generator::class_printer::want_descendent_overloads ( const function_set methods)
pure virtual

Member Data Documentation

◆ clazz

const isl_class& cpp_generator::class_printer::clazz

◆ cppstring

const std::string cpp_generator::class_printer::cppstring

◆ declarations

const bool cpp_generator::class_printer::declarations

Definition at line 187 of file cpp.h.

◆ generator

cpp_generator& cpp_generator::class_printer::generator

Definition at line 186 of file cpp.h.

◆ os

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().


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