-
Notifications
You must be signed in to change notification settings - Fork 6
/
topology.i
35 lines (31 loc) · 1012 Bytes
/
topology.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%module topology
%include "std_vector.i"
%include "std_string.i"
%include "std_map.i"
%include "std_set.i"
%include "std_pair.i"
%include "stl.i"
%{
#include "MorseComplex.h"
#include "MergeTree.h"
%}
%include "MorseComplex.h"
%include "MergeTree.h"
%template(MorseComplexFloat) MorseComplex<float>;
%template(MorseComplexDouble) MorseComplex<double>;
%template(MergeTreeFloat) MergeTree<float>;
%template(MergeTreeDouble) MergeTree<double>;
namespace std
{
%template(vectorFloat) vector<float>;
%template(vectorDouble) vector<double>;
%template(vectorString) vector<string>;
%template(vectorInt) vector<int>;
%template(setInt) set<int>;
%template(mapPartition) map< string, vector<int> >;
%template(mapManifolds) map< int, vector<int> >;
%template(mapIntFloat) map< int, float >;
%template(setIntPair) set< pair<int,int> >;
%template(mapIntSetInt) map< int, set<int> >;
%template(mapIntPairVectorInt) map< pair<int,int> , vector<int> >;
}