Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
包装多重映射和涉及C+函数的结构时的问题+;通过swig调用python_Python_C++_Structure_Swig_Multimap - Fatal编程技术网

包装多重映射和涉及C+函数的结构时的问题+;通过swig调用python

包装多重映射和涉及C+函数的结构时的问题+;通过swig调用python,python,c++,structure,swig,multimap,Python,C++,Structure,Swig,Multimap,我在包装 MultIMAP 中有一个问题,涉及到函数从C++到Python的SWIG结构。 标题如下所示: /*example.hpp*/ typedef struct { unsigned x; unsigned y; unsigned z; string accession; unsigned cluster; unsigned raw_score; unsigned ix; unsigned iy; bool

我在包装<代码> MultIMAP 中有一个问题,涉及到函数从C++到Python的SWIG结构。 标题如下所示:

/*example.hpp*/    
typedef struct {
    unsigned x;
    unsigned y;
    unsigned z;
    string  accession;
    unsigned cluster;
    unsigned raw_score;
    unsigned ix;
    unsigned iy;
    bool is_specfic;

} cdsearchinfo;

void foo(string& filename, multimap<unsigned, cdsearchinfo>& cdsearchmap, set<unsigned>& gi_set);
/*示例.hpp*/
类型定义结构{
无符号x;
无符号y;
无符号z;
字符串加入;
无符号簇;
未签名原始分数;
未签署的第九条;
未签名的iy;
布尔是特殊的;
}cdsearchinfo;
void foo(字符串和文件名、多重映射和cdsearchmap、集合和gi_集合);

我应该如何为此编写
.I
文件?

请查看:谢谢!我刚发现swig有lib:std_地图