I am trying to export interface of C++ templated library to Julia using Cxx and I cannot find a good way how to do it. Suppose I have a class like this:
template< typename T >
struct myArray
{
myArray() {...};
myArray( int size ) {...};
void setSize( int size ) {...};
int getSize() {...};
};
I would like to use Cxx in Julia to define struct, constructor with size and functions getSize and setSize. And another question, how could I deal with type T? How to pass it from Julia to myArray?
Hi again,
I am trying to export interface of C++ templated library to Julia using Cxx and I cannot find a good way how to do it. Suppose I have a class like this:
I would like to use Cxx in Julia to define
struct
, constructor with size and functionsgetSize
andsetSize
. And another question, how could I deal with typeT
? How to pass it from Julia tomyArray
?Thanks for ant help, Tomas.