I want to create a function which will return a static array and wrap this function with SWIG to be able to use it in Java.
Say I created my own class and I have a C++ function which looks like
myClass* myFunction()
{
// stuff here
}
And I want to wrap it with SWIG so as to use it in Java in this way :
myClass[] array = myFunction();
I've done some reseach but couldn't find something valuable (many answers say how to create function whose arguments are arrays but none say about arrays being returned).
Thank you for taking the time to answer me.