[bindings] Added generic twin pointer accessor

This commit is contained in:
Frank Martinez
2025-10-01 20:44:18 -05:00
committed by Chris Hennes
parent 1041fe38d1
commit bdf391ebec

View File

@@ -335,6 +335,7 @@ public:
/// getter for the object handled by this class
@self.export.TwinPointer@ *get@self.export.Twin@Ptr() const;
@self.export.TwinPointer@ *getTwinPtr() const;
+ if(self.export.ClassDeclarations != ""):
/** @name additional declarations and methods for the wrapper class */
@@ -892,6 +893,11 @@ int @self.export.Name@::_setattr(const char *attr, PyObject *value) // __setattr
return static_cast<@self.export.TwinPointer@ *>(_pcTwinPointer);
}
@self.export.TwinPointer@ *@self.export.Name@::getTwinPtr() const
{
return get@self.export.Twin@Ptr();
}
#if defined(__clang__)
# pragma clang diagnostic pop
#endif