~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/test-suite/template_classes.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
%module template_classes
5
5
 
 
6
%{
 
7
%}
 
8
 
6
9
%inline %{
7
10
 
8
11
template <class T>
14
17
};
15
18
 
16
19
template <class T>
17
 
class Rectangle {
 
20
class RectangleTest {
18
21
public:
19
22
  Point<T>& getPoint() {return point;}
20
23
  void setPoint(Point<T>& value) {point = value;}
25
28
%}
26
29
 
27
30
%template(PointInt) Point<int>;
28
 
%template(RectangleInt) Rectangle<int>;
 
31
%template(RectangleInt) RectangleTest<int>;
29
32
 
30
33