c++11 wrapper functions and classes for mex-like structures.