class Bindgen::CallBuilder::CppMethod

Overview

Builds a Call implementing a C++ member method, for overriding C++ virtual methods from Crystal.

Defined in:

bindgen/call_builder/cpp_method.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : TypeDatabase) #

[View source]

Instance Method Detail

def build(method : Parser::Method, target : Call | Nil, virtual_target : Call, class_name : String | Nil = nil, in_superclass = false, wrapped_class : String | Nil = nil) #

Builds the method of the shadow subclass class_name, calling the Crystal override through virtual_target, a CppToCrystalProc call taking the Crystal object, or target, the C++ implementation, if there's no override. wrapped_class is the class the subclass shadows, whose pointer the Crystal object was bound to, see BindgenHelper.set_crystal_object.


[View source]