I have just pushed a commit allowing for importing a new wrapper of an instance of the dolfin::MeshFunction template class. Basically it writes the same code as in meshfunction.h,
MeshFunction.cc and save_mf.cc to meshfunction_typename.h, etc, then it compiles it. Obviously, instead of std::size_t there will be the type asked by the user with a call to import_meshfunction_type.
There is still a bit of work to do. I have just remembered that in C++ there are type identifiers with “structural whitespace” (I am not going nuts, what I mean is that “unsigned long” names a type, “unsignedlong” does not), so I need to make a couple
of corrections to the functions writing code. I should also check whether angle brackets are allowed in an identifier, which I doubt. Anyway, I am looking forward to hearing advice on how to verify the functionality of these edits and comments on them.
Eugenio