struct
Bindgen::Cpp::Typename
- Bindgen::Cpp::Typename
- Struct
- Value
- Object
Overview
C++ type-name generation logic.
Defined in:
bindgen/cpp/typename.crConstructors
Instance Method Summary
-
#full(base_name : String, const, pointer, is_reference, extents = nil, array_pointer = 0) : String
Formats the type in result in C++ style.
-
#full(result : Call::Expression) : String
Formats the type in result in C++ style.
-
#full(results : Enumerable(Call::Expression)) : Array(String)
Formats many results.
- #initialize
-
#template_class(template : String, arguments : Enumerable(String)) : String
Generates the C++ type name of a template class with the given template type arguments.
Constructor Detail
Instance Method Detail
Formats the type in result in C++ style.
A pointer or reference to a C array is spelled through bindgen_type,
as C++ can't declare e.g. a variable of type int (*)[4] by appending
its name to the type.
The stars of pointer include those of the array_pointer
indirections applying to the whole array, like in int (*)[4].
Formats the type in result in C++ style.
A pointer or reference to a C array is spelled through bindgen_type,
as C++ can't declare e.g. a variable of type int (*)[4] by appending
its name to the type.
Generates the C++ type name of a template class with the given template type arguments.