PageRenderTime 43ms CodeModel.GetById 41ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
Swig | 24 lines | 16 code | 8 blank | 0 comment | 0 complexity | 1e2a3373781fdbfa2211713c4fabe3eb MD5 | raw file
 1%module template_default_vw
 2
 3%inline %{
 4class SomeClass{ }; 
 5 
 6template<class T>  
 7class Handle { 
 8public: 
 9    Handle( T* t=0 ) { };   
10    // ... 
11}; 
12 
13typedef Handle<SomeClass> hSomeClass; 
14class AnotherClass { 
15public: 
16  void someFunc( hSomeClass a = hSomeClass() ) { }; 
17}; 
18
19%}
20
21%template() Handle<SomeClass>;
22
23
24