/* Copyright 2016-2017 The MathWorks, Inc. */ #ifndef MATLAB_EXTDATA_HELPER_FUNCTIONS_HPP #define MATLAB_EXTDATA_HELPER_FUNCTIONS_HPP #include namespace matlab { namespace data { namespace detail { class Access { public: template static ImplT* getImpl(const ObjT& a) { return static_cast(a.pImpl.get()); } template static Obj createObj(Impl* impl) { return Obj(impl); } template static Obj createObj(std::shared_ptr impl) { return Obj(impl); } }; } } } #endif