Bindgen::Cpp::Cookbook
The cookbook contains snippets for the C++ and C platforms.
The TypeDatabase stores which cookbook to use. Don't .new your own.
Which cookbook is used is configured by the user through the platform:
setting. See Configuration#platform for the code, and TEMPLATE.yml
for user-facing documentation.
The functions all return a Template::Basic when conversion is
necessary, and Template::None otherwise.
Constructors
Instance methods
How to call the constructor method of class_name.
Same, but provides an override of types reference and pointer qualification.
Finds the template to pass type as-is as pass_by. The returned template takes an expression returning something of type and turns it into something that can be pass_by'd on.
Same as #constructor_name, but guarantees that the constructed type is
class_name itself, and not a helper type wrapping it. This is
required to brace-initialize an aggregate, and for C++ unions.
Provides a template to convert a pointer to a reference.
Provides a template to convert a pointer to a value.
Provides a template to convert a reference to a pointer.
Provides a template to convert a reference to a value.
Provides a template to convert a value to a pointer.