class

Bindgen::CallBuilder::CppMethod

Inherits Reference < Object

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

Constructors

new(db : TypeDatabase)
Source

Instance methods

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.

Source

Nested types