PageRenderTime 30ms CodeModel.GetById 23ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 57 lines | 35 code | 22 blank | 0 comment | 0 complexity | 5ae283c11384cacc334c17c492712891 MD5 | raw file
 1%module template_expr
 2
 3// bug #925555
 4%inline %{
 5
 6  template<int __stride, class __elementTypeSequence,
 7    class __dataPtrType, class __elementType>
 8    inline const ThisType & 
 9    ConcatenationOf(const vctFixedLengthConstSequenceBase<_size - 1,
10		    __stride, __elementTypeSequence, __dataPtrType> & other,
11		    __elementType last);
12%}
13
14// bug #956282
15%inline %{
16
17  
18template<int q>
19class X {};
20
21
22%}
23
24%template(X_1) X<1>;
25%template(X_m1) X<-1>;
26%template(X_1plus2) X<1+2>;
27%template(X_1024div8) X<1024/8>;
28
29
30// bug #646275
31
32%inline %{
33    template<typename Type, short Rank>
34	typedef typename CondRetType< Rank!=1,
35		Test<Type,Rank-1>, Type>::TestRm1 TestRm1;
36%}
37
38
39// bug #994301
40
41
42%inline %{
43    template<int foo> class X994301 {};
44%}
45
46%template(X994301_ternary) X<(7 >= 4) ? 1 + 1 : 1>;
47%template(X994301_ternary2) X<(7 <= 4) ? 1 + 1 : 1>;
48
49
50// bug #1338527 (still broken)
51
52
53%inline %{
54
55  template<typename, typename> class PatchList;
56
57%}