MCPcopy Create free account
hub / github.com/charto/nbind / addMethod

Method addMethod

include/nbind/BindClass.h:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 // Add a method to the class.
85
86 void addMethod(
87 const char *name,
88 BaseSignature *signature = nullptr,
89 funcPtr ptr = nullptr,
90 unsigned int num = 0,
91 TypeFlags flags = TypeFlags::none
92 ) {
93 methodList.emplace_after(methodLast, name, ptr, num, signature, flags);
94 ++methodLast;
95 }
96
97 std::forward_list<MethodDef> &getMethodList() { return(methodList); }
98

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected