add device component member functions for creating a device pointer and a host pointer inside the component