Attaches the functionality of this object to the given input object
(mdef)
| 542 | |
| 543 | @staticmethod |
| 544 | def generate_from_obj(mdef): |
| 545 | """Attaches the functionality of this object to the given input object""" |
| 546 | for k,v in DoxygenCppFunction.__dict__.items(): |
| 547 | if callable(v) and not k == "__init__": |
| 548 | import types |
| 549 | mdef.__dict__[k] = types.MethodType(v, mdef) |
| 550 | mdef.initialize_dgencpp() |
| 551 | return mdef |
| 552 | |
| 553 | @staticmethod |
| 554 | def generate_imports(imports): |
no test coverage detected