class Bindgen::Cpp::BareCCookbook

Overview

Cookbook for the C language using Boehm-GC for memory management.

Configuration name is bare-c.

References are supported, although they shouldn't occur.

Direct Known Subclasses

Defined in:

bindgen/cpp/cookbook.cr

Instance Method Summary

Instance methods inherited from class Bindgen::Cpp::Cookbook

constructor_name(method_name : String, class_name : String) : String constructor_name, find(base_name : String, is_reference, is_pointer, pass_by : TypeDatabase::PassBy) : String | Nil
find(type : Parser::Type, pass_by : TypeDatabase::PassBy) : String | Nil
find
, pointer_to_reference(type : String) : String | Nil pointer_to_reference, pointer_to_value(type : String) : String | Nil pointer_to_value, reference_to_pointer(type : String) : String | Nil reference_to_pointer, reference_to_value(type : String) : String | Nil reference_to_value, value_to_pointer(type : String) : String | Nil value_to_pointer, value_to_reference(type : String) : String | Nil value_to_reference

Constructor methods inherited from class Bindgen::Cpp::Cookbook

create_by_name(name) : Cookbook create_by_name

Instance Method Detail

def constructor_name(method_name : String, class_name : String) : String #
Description copied from class Bindgen::Cpp::Cookbook

How to call the constructor method of class_name.


[View source]
def pointer_to_reference(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a pointer to a reference.


[View source]
def pointer_to_value(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a pointer to a value.


[View source]
def reference_to_pointer(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a reference to a pointer.


[View source]
def reference_to_value(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a reference to a value.


[View source]
def value_to_pointer(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a value to a pointer.


[View source]
def value_to_reference(type : String) : String | Nil #
Description copied from class Bindgen::Cpp::Cookbook

Provides a template to convert a value to a reference.


[View source]