/* ----------------------------------------------------------------------- *//** * * @file TransparentHandle_impl.hpp * *//* ----------------------------------------------------------------------- */ #ifndef MADLIB_POSTGRES_TRANSPARENTHANDLE_IMPL_HPP #define MADLIB_POSTGRES_TRANSPARENTHANDLE_IMPL_HPP namespace madlib { namespace dbconnector { namespace postgres { template TransparentHandle::TransparentHandle(val_type* inPtr) : mPtr(inPtr) { } /** * @brief Return the (constant) pointer of this handle */ template inline typename TransparentHandle::val_type* TransparentHandle::ptr() const { return mPtr; } // TransparentHandle template TransparentHandle::TransparentHandle(val_type* inPtr) : Base(inPtr) { } /** * @brief Return the pointer of this handle */ template inline typename TransparentHandle::val_type* TransparentHandle::ptr() { return const_cast(static_cast(this)->ptr()); } } // namespace postgres } // namespace dbconnector } // namespace madlib #endif // defined(MADLIB_POSTGRES_TRANSPARENTHANDLE_IMPL_HPP)