C++ codegen: Group private and public attributes and methods in header file
Currently, the code is unnecessarily spread out due to having multiple switches between public and private in each class section.