PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/li_std_combinations.i

#
Swig | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 916ca42e21bfe88adc9ae3cbd972c592 MD5 | raw file
 1%module li_std_combinations
 2
 3%include <std_vector.i>
 4%include <std_string.i>
 5%include <std_pair.i>
 6
 7%template(VectorInt) std::vector<int>;
 8%template(VectorString) std::vector<std::string>;
 9%template(PairIntString) std::pair<int, std::string>;
10
11%template(VectorPairIntString) std::vector< std::pair<int, std::string> >;
12%template(PairIntVectorString) std::pair< int, std::vector<std::string> >;
13
14%template(VectorVectorString) std::vector< std::vector<std::string> >;
15%template(PairIntPairIntString) std::pair< int, std::pair<int, std::string> >;
16
17#if defined(SWIGCSHARP) || defined(SWIGD)
18// Checks macro containing a type with a comma
19SWIG_STD_VECTOR_ENHANCED(std::pair< double, std::string >)
20#endif
21%template(PairDoubleString) std::pair< double, std::string >;
22%template(VectorPairDoubleString) std::vector< std::pair<double, std::string> >;
23