MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / add_method

Method add_method

tools/api.py:634–635  ·  view source on GitHub ↗
(self, name: str, f: Function)

Source from the content-addressed store, hash-verified

632 self.prefix = 'p'
633
634 def add_method(self, name: str, f: Function) -> None:
635 self.methods.append(CPPMember(name, f, self.prefix, method=True))
636
637 def add_constructor(self, name: str, f: Function) -> None:
638 self.constructors.append(CPPMember(name, f, self.prefix, method=True))

Callers 1

methodMethod · 0.80

Calls 2

CPPMemberClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected