PageRenderTime 32ms CodeModel.GetById 19ms app.highlight 12ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/template_arg_typename.i

#
Swig | 26 lines | 16 code | 10 blank | 0 comment | 0 complexity | af1b0a14da21cfe43b2b53f19c9b52b4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module template_arg_typename
 2
 3%inline %{
 4
 5
 6  template <class ArgType, class ResType>
 7  struct UnaryFunction 
 8  {
 9    typedef void* vptr_type;
10  };
11
12  template <class ArgType>
13  struct BoolUnaryFunction : UnaryFunction<ArgType, bool>
14			     
15  {
16    typedef UnaryFunction<ArgType, bool> base;
17    BoolUnaryFunction(const typename base::vptr_type* vptrf) {}
18
19  };
20
21
22%}
23
24
25%template(UnaryFunction_bool_bool) UnaryFunction<bool, bool>;
26%template(BoolUnaryFunction_bool) BoolUnaryFunction<bool>;