def METHOD_NAME(self):
    """Performs C++ code generation for the feature."""
    first = True
    for struct in self.get_filtered_struct_names():
        body = '' if first else '\n'
        body += 'void EncodeStruct(ParameterEncoder* encoder, const {}& value)\n'.format(
            struct
        )
        body += '{\n'
        body += self.make_struct_body(
            struct, self.feature_struct_members[struct], 'value.'
        )
        body += '}'
        write(body, file=self.outFile)
        first = False