PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 21 lines | 12 code | 9 blank | 0 comment | 0 complexity | 0121db4377cfbd29452d2fa5f3a1ab52 MD5 | raw file
 1%module template_ns3
 2
 3%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */
 4
 5%inline %{
 6namespace foo {
 7   typedef int Integer;
 8
 9   template<class T> class bar {
10   public:
11       Integer test(Integer x) { return x; }
12   };
13
14}
15%}
16
17%template(bari) foo::bar<int>;
18
19   
20    
21