PageRenderTime 190ms CodeModel.GetById 35ms RepoModel.GetById 2ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module li_std_combinations
  2. %include <std_vector.i>
  3. %include <std_string.i>
  4. %include <std_pair.i>
  5. %template(VectorInt) std::vector<int>;
  6. %template(VectorString) std::vector<std::string>;
  7. %template(PairIntString) std::pair<int, std::string>;
  8. %template(VectorPairIntString) std::vector< std::pair<int, std::string> >;
  9. %template(PairIntVectorString) std::pair< int, std::vector<std::string> >;
  10. %template(VectorVectorString) std::vector< std::vector<std::string> >;
  11. %template(PairIntPairIntString) std::pair< int, std::pair<int, std::string> >;
  12. #if defined(SWIGCSHARP) || defined(SWIGD)
  13. // Checks macro containing a type with a comma
  14. SWIG_STD_VECTOR_ENHANCED(std::pair< double, std::string >)
  15. #endif
  16. %template(PairDoubleString) std::pair< double, std::string >;
  17. %template(VectorPairDoubleString) std::vector< std::pair<double, std::string> >;