casadi/casadi — pull request #867 by toivoh (2013-10-28 14:21:57+00:00)
Title: Expose more GenericType constructors in SWIG interface

This pull request exposes more of the `GenericType` constructors when wrapping CasADi to other languagues than python and octave, using SWIG.

The reason that I hope that we can do something like this is that we need the `GenericType(const std::string& s);` constructor to be able to name an `MXFunction` when creating it from java, for which we have made a minimal CasADi wrapper that exposes the functionality that we need.

I'm not sure why the original `#ifndef SWIG` is there in the first place, so I'm not sure what is the best way to expose what we need. The current patch is at least rather simple, and does not change the behavior of CasADi with the SWIG interfaces it is currently bundled with.