class
Bindgen::CallBuilder::CppMethod
- Bindgen::CallBuilder::CppMethod
- Reference
- Object
Overview
Builds a Call implementing a C++ member method, for overriding C++
virtual methods from Crystal.
Defined in:
bindgen/call_builder/cpp_method.crConstructors
Instance Method Summary
-
#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
CppToCrystalProccall taking the Crystal object, or target, the C++ implementation, if there's no override.
Constructor Detail
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.