Convert ptr_record to C++ class.