Expand C++ member functions into implementation file