loki.backend.cppgen module

cppgen(ir, **kwargs)

Generate standardized C++ code from one or many IR objects/trees.

class CppCodegen(depth=0, indent='  ', linewidth=90, **kwargs)

Bases: CCodegen

Tree visitor to generate standardized C++ code from IR.

class CppCodeMapper(intrinsic_type_mapper, *args, **kwargs)

Bases: CCodeMapper

A StringifyMapper-derived visitor for Pymbolic expression trees that converts an expression to a string adhering to standardized C++.

map_inline_call(expr, enclosing_prec, *args, **kwargs)
class IntrinsicTypeCpp

Bases: IntrinsicTypeC

Mapping Fortran type to corresponding C++ type.

get_str_from_symbol_attr(_type, *args, **kwargs)