/trunk/Examples/test-suite/template_typedef_cplx3.i
Swig | 37 lines | 23 code | 14 blank | 0 comment | 0 complexity | 20b611f67ba54bd79bafdb8350b95aef MD5 | raw file
1%module template_typedef_cplx3 2%{ 3#include "template_typedef_cplx2.h" 4%} 5 6%include "template_typedef_cplx2.h" 7 8%inline %{ 9 10 typedef vfncs::ArithUnaryFunction<double, double> RFunction; 11 typedef vfncs::ArithUnaryFunction<Complex, Complex> CFunction; 12 13 14 int my_func_r(RFunction* hello) 15 { 16 return 0; 17 } 18 19 int my_func_c(CFunction* hello) 20 { 21 return 1; 22 } 23 24 struct Sin : RFunction 25 { 26 }; 27 28 struct CSin : CFunction 29 { 30 }; 31 32%} 33 34 35 36 37