mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
java: converted wrappers for std::vector to inherit from AbstractList<>
Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com> Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
65726087bc
commit
ac031ba9a8
@ -1,10 +1,23 @@
|
||||
%module javaupm_bmg160
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
%include "std_vector.i"
|
||||
%include "../upm_stdvector.i"
|
||||
|
||||
%ignore getGyroscope(float *, float *, float *);
|
||||
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import java.util.AbstractList;
|
||||
import java.lang.Float;
|
||||
%}
|
||||
|
||||
%typemap(javaout) SWIGTYPE {
|
||||
return new $&javaclassname($jnicall, true);
|
||||
}
|
||||
%typemap(javaout) std::vector<float> {
|
||||
return (AbstractList<Float>)(new $&javaclassname($jnicall, true));
|
||||
}
|
||||
%typemap(jstype) std::vector<float> "AbstractList<Float>"
|
||||
|
||||
%template(floatVector) std::vector<float>;
|
||||
|
||||
%include "bmg160_defs.h"
|
||||
|
Reference in New Issue
Block a user