我有一个swig文件,其中包含以下代码:
%module vgSofa
#define VG_SOFA_API
%import vgd/vgd.i
%import vgm/vgm.i
%template(BasicHandlerShp1) boost::shared_ptr<vgSofa::handler::BasicHandler>;
%{
#include "vgSofa/handler/BasicHandler.hpp"
%}
%template(BasicHandlerShp) vgd::Shp<vgSofa::handler::BasicHandler>;
%include "vgSofa/handler/BasicHandler.hpp"
其中vgd::Shp
继承到boost::shared_ptr
。
此代码生成包装器和python文件,但在生成的python文件中,我无权访问模板BasicHandlerShp
中的vgSofa::handler::BasicHandler
函数。
如何在BasicHandlerShp
中访问这些函数?
谢谢您!!你知道吗
基础课程对你有用吗?我不知道为什么您希望vgd::Shp从shared\u ptr继承,这真的是您想要做的吗?你知道吗
相关问题 更多 >
编程相关推荐