Added generation of the prototypes of the generated methods at the top of the C++ file.