Home | History | Annotate | Download | only in typemaps

Lines Matching refs:INPUT

36 // Use the following definition to enable the INPUT parameters to
44 // These mappings provide support for input/output arguments and common
48 // INPUT typemaps.
49 // These remap a C pointer to be an "INPUT" value which is passed by value
54 "input" value. That is, instead of passing a pointer to an object,
65 double fadd(double *INPUT, double *INPUT);
69 %apply double *INPUT { double *a, double *b };
74 #define %check_input_ptr(input,arg,desc,disown) (SWIG_IsOK((res = SWIG_ConvertPtr(input,%as_voidptrptr(arg),desc,disown))))
76 #define %check_input_ptr(input,arg,desc,disown) (SWIG_IsOK((res = SWIG_ERROR)))
80 %typemap(in,noblock=1,fragment=asval_frag) Type *INPUT ($*ltype temp, int res = 0) {
81 if (!%check_input_ptr($input,&$1,$descriptor,$disown)) {
83 int ecode = asval_meth($input, &val);
92 %typemap(in,noblock=1,fragment=asval_frag) Type &INPUT($*ltype temp, int res = 0) {
93 if (!%check_input_ptr($input,&$1,$descriptor,$disown)) {
95 int ecode = asval_meth($input, &val);
104 %typemap(freearg,noblock=1,match="in") Type *INPUT, Type &INPUT {
107 %typemap(typecheck,noblock=1,precedence=code,fragment=asval_frag) Type *INPUT, Type &INPUT {
109 int res = asval_meth($input, 0);
112 $1 = %check_input_ptr($input,&ptr,$1_descriptor,0);
118 %typemap(in,noblock=1,fragment=asptr_frag) Type *INPUT(int res = 0) {
119 res = asptr_meth($input, &$1);
125 %typemap(in,noblock=1,fragment=asptr_frag) Type &INPUT(int res = 0) {
126 res = asptr_meth($input, &$1);
135 %typemap(freearg,noblock=1,match="in") Type *INPUT, Type &INPUT {
138 %typemap(typecheck,noblock=1,precedence=code,fragment=asptr_frag) Type *INPUT, Type &INPUT {
139 int res = asptr_meth($input, (Type**)0);
150 value. When calling a function, no input value would be given for
193 // Mappings for an argument that is both an input and output
198 an input and output value. This combines the behavior of both the
199 "INPUT" and "OUTPUT" methods described earlier. Output values are
217 Unlike C, this mapping does not directly modify the input value.
218 Rather, the modified input value shows up as the return value of the
225 input/output arguments. This is still supported, but will be slowly
231 %typemap(in) Type *INOUT = Type *INPUT;
232 %typemap(in) Type &INOUT = Type &INPUT;
233 %typemap(typecheck) Type *INOUT = Type *INPUT;
234 %typemap(typecheck) Type &INOUT = Type &INPUT;
242 %typemap(typecheck) Type *INOUT = Type *INPUT;
243 %typemap(typecheck) Type &INOUT = Type &INPUT;
244 %typemap(freearg) Type *INOUT = Type *INPUT;
245 %typemap(freearg) Type &INOUT = Type &INPUT;