File: cpp_misc.i

package info (click to toggle)
swig 1.1.p883-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,264 kB
  • ctags: 5,129
  • sloc: cpp: 20,856; ansic: 13,627; yacc: 3,314; python: 2,794; makefile: 2,216; perl: 1,970; tcl: 1,583; sh: 716; lisp: 201; objc: 143
file content (29 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

// Miscellaneous C++ declarations that SWIG should be able to handle

%module cpp_misc

// Ignored "inline" directive

inline int misc1(int);

// Extra "const" added

int misc2(int, int) const;

// Now in a class definition

class Misc {
public:
	inline int misc3(double);
	double misc4(double,float) const;
};

// Constructor initializer

class Foo {
	int x,y;
public:
	Foo(int x, int y) : x(x), y(y), z(x+2,3,4) { };
};