/
usr
/
share
/
swig
/
3.0.12
/
/usr/share/swig/3.0.12
mkdir
upload
Name
Size
Mode
Actions
allegrocl/
-
0755
rm
cffi/
-
0755
rm
chicken/
-
0755
rm
clisp/
-
0755
rm
csharp/
-
0755
rm
d/
-
0755
rm
gcj/
-
0755
rm
go/
-
0755
rm
guile/
-
0755
rm
java/
-
0755
rm
javascript/
-
0755
rm
lua/
-
0755
rm
modula3/
-
0755
rm
mzscheme/
-
0755
rm
ocaml/
-
0755
rm
octave/
-
0755
rm
perl5/
-
0755
rm
php/
-
0755
rm
php5/
-
0755
rm
pike/
-
0755
rm
python/
-
0755
rm
r/
-
0755
rm
ruby/
-
0755
rm
scilab/
-
0755
rm
std/
-
0755
rm
tcl/
-
0755
rm
typemaps/
-
0755
rm
uffi/
-
0755
rm
allkw.swg
803
0644
edit
dl
rm
attribute.i
496
0644
edit
dl
rm
carrays.i
2646
0644
edit
dl
rm
cdata.i
3181
0644
edit
dl
rm
cmalloc.i
2354
0644
edit
dl
rm
constraints.i
7047
0644
edit
dl
rm
cpointer.i
3551
0644
edit
dl
rm
cstring.i
324
0644
edit
dl
rm
cwstring.i
265
0644
edit
dl
rm
director_common.swg
512
0644
edit
dl
rm
exception.i
8254
0644
edit
dl
rm
intrusive_ptr.i
2814
0644
edit
dl
rm
inttypes.i
2380
0644
edit
dl
rm
math.i
2086
0644
edit
dl
rm
pointer.i
294
0644
edit
dl
rm
runtime.swg
1236
0644
edit
dl
rm
shared_ptr.i
2686
0644
edit
dl
rm
stdint.i
2368
0644
edit
dl
rm
std_except.i
2077
0644
edit
dl
rm
stl.i
249
0644
edit
dl
rm
swig.swg
24840
0644
edit
dl
rm
swigarch.i
1580
0644
edit
dl
rm
swigerrors.swg
499
0644
edit
dl
rm
swiginit.swg
7973
0644
edit
dl
rm
swiglabels.swg
3800
0644
edit
dl
rm
swigrun.i
256
0644
edit
dl
rm
swigrun.swg
16662
0644
edit
dl
rm
swigwarn.swg
14291
0644
edit
dl
rm
swigwarnings.swg
7094
0644
edit
dl
rm
wchar.i
309
0644
edit
dl
rm
windows.i
4143
0644
edit
dl
rm
Edit:
/usr/share/swig/3.0.12/shared_ptr.i
(2686B)
// This is a helper file for shared_ptr and should not be included directly. // The main implementation detail in using this smart pointer of a type is to customise the code generated // to use a pointer to the smart pointer of the type, rather than the usual pointer to the underlying type. // So for some type T, shared_ptr<T> * is used rather than T *. // Another key part of the implementation is the smartptr feature: // %feature("smartptr") T { shared_ptr<T> } // This feature marks the class T as having a smartptr to it (the shared_ptr<T> type). This is then used to // support smart pointers and inheritance. Say class D derives from base B, then shared_ptr<D> is marked // with a fake inheritance from shared_ptr<B> in the type system if the "smartptr" feature is used on both // B and D. This is to emulate the conversion of shared_ptr<D> to shared_ptr<B> in the target language. // shared_ptr namespaces could be boost or std or std::tr1 // For example for std::tr1, use: // #define SWIG_SHARED_PTR_NAMESPACE std // #define SWIG_SHARED_PTR_SUBNAMESPACE tr1 #if !defined(SWIG_SHARED_PTR_NAMESPACE) # define SWIG_SHARED_PTR_NAMESPACE boost #endif #if defined(SWIG_SHARED_PTR_SUBNAMESPACE) # define SWIG_SHARED_PTR_QNAMESPACE SWIG_SHARED_PTR_NAMESPACE::SWIG_SHARED_PTR_SUBNAMESPACE #else # define SWIG_SHARED_PTR_QNAMESPACE SWIG_SHARED_PTR_NAMESPACE #endif namespace SWIG_SHARED_PTR_NAMESPACE { #if defined(SWIG_SHARED_PTR_SUBNAMESPACE) namespace SWIG_SHARED_PTR_SUBNAMESPACE { #endif template <class T> class shared_ptr { }; #if defined(SWIG_SHARED_PTR_SUBNAMESPACE) } #endif } %fragment("SWIG_null_deleter", "header") { struct SWIG_null_deleter { void operator() (void const *) const { } }; %#define SWIG_NO_NULL_DELETER_0 , SWIG_null_deleter() %#define SWIG_NO_NULL_DELETER_1 %#define SWIG_NO_NULL_DELETER_SWIG_POINTER_NEW %#define SWIG_NO_NULL_DELETER_SWIG_POINTER_OWN } // Workaround empty first macro argument bug #define SWIGEMPTYHACK // Main user macro for defining shared_ptr typemaps for both const and non-const pointer types %define %shared_ptr(TYPE...) %feature("smartptr", noblock=1) TYPE { SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< TYPE > } SWIG_SHARED_PTR_TYPEMAPS(SWIGEMPTYHACK, TYPE) SWIG_SHARED_PTR_TYPEMAPS(const, TYPE) %enddef // Legacy macros %define SWIG_SHARED_PTR(PROXYCLASS, TYPE...) #warning "SWIG_SHARED_PTR(PROXYCLASS, TYPE) is deprecated. Please use %shared_ptr(TYPE) instead." %shared_ptr(TYPE) %enddef %define SWIG_SHARED_PTR_DERIVED(PROXYCLASS, BASECLASSTYPE, TYPE...) #warning "SWIG_SHARED_PTR_DERIVED(PROXYCLASS, BASECLASSTYPE, TYPE) is deprecated. Please use %shared_ptr(TYPE) instead." %shared_ptr(TYPE) %enddef
Save
cmd:
run