File: cpp_data.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 (45 lines) | stat: -rw-r--r-- 1,009 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// cpp_data.i
// This file tests SWIG's parsing of C++ member data
//
%module cpp_data

class Data {
public:
	int               d_int;
	short             d_short;
	long              d_long;
	unsigned int      d_uint;
	unsigned short    d_ushort;
	unsigned long     d_ulong;
	unsigned char     d_uchar;
	signed char       d_schar;
	float             d_float;
	double            d_double;
	char             *d_string;
	char              d_char;
	int               *p_int;
	short             *p_short;
	long              *p_long;
	unsigned int      *p_uint;
	unsigned short    *p_ushort;
	unsigned long     *p_ulong;
	unsigned char     *p_uchar;
	signed char       *p_schar;
	float             *p_float;
	double            *p_double;

static  int                s_int;
static  short              s_short;
static  long               s_long;
static  float              s_float;
static  double             s_double;
static  char              *s_string;

	Vector             vec;
	Vector            &rvec;
};