PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 30 lines | 21 code | 9 blank | 0 comment | 0 complexity | 174e582cc2a84f1920efd1564c10213b MD5 | raw file
 1// Submitted by Marcelo Matus
 2%module template_ns_inherit
 3 
 4%inline %{
 5  namespace hello  {
 6      typedef double Double;
 7  }
 8  namespace hello
 9  {
10    template <class ArgType, class ResType>
11    class VUnaryFunction
12    {};
13 
14    template <class ArgType, class ResType>
15    class UnaryFunction  : public VUnaryFunction<ArgType, ResType>
16    {};
17  }
18 
19%}
20 
21namespace hello
22{
23  %template(VUnaryFunction_id) VUnaryFunction<int, Double>;
24  %template(UnaryFunction_id) UnaryFunction<int, Double>;
25}                                                                             
26
27
28
29
30