summaryrefslogtreecommitdiff
path: root/swig/CapSet.i
blob: 35eb603d62d347f37cd679386d5f5e4c1c6e54a9 (plain)
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


// I don't think this is correct: ctor and dtor are not taken into account
class CapSet
{

};


#ifdef SWIGRUBY
iter3(CapSet, Capability*);
#endif


// The ruby std_set.i can only handle one template parameter

// #ifdef SWIGPYTHON
// %template(CapSetTemp) std::set<Capability, CapOrder>;
// typedef std::set<Capability,CapOrder> CapSetTemp;
// #endif

#ifdef SWIGPYTHON
%extend CapSet
{
    // just a test
    const Capability* haha()
    {
	CapSet::iterator i = self->begin();
	const Capability* tmp = &*i;
	return tmp;
    }
}
#endif

#ifdef SWIGPERL5
iter2(CapSet, Capability);
#endif