parameters: (block_definition)
docstring: Convert gengen templates to C++ templates for simple cases
      which only have one type for input and output
docstring_summary: Convert gengen templates to C++ templates for simple cases
      which only have one type for input and output
docstring_tokens: Convert gengen templates to C ++ templates for simple cases which only have one type for input and output
function: def handle_template_conversion(block_definition):
      """
      Convert gengen templates to C++ templates for simple cases
      which only have one type for input and output
      """
      if block_definition.get("single_type", None) == True:
          if block_definition.get("template_type") == "GR_EXPAND_X_H":
              convert_public_header(block_definition)
          elif block_definition.get(
                  "template_type"
          ) == "GR_EXPAND_X_CC_H_IMPL" or block_definition.get(
                  "template_type") == "GR_EXPAND_X_CC_H":
              convert_impl(block_definition)
          rewrite_cmakelists(block_definition)
function_tokens: def handle_template_conversion ( block_definition ) : if block_definition . get ( "single_type" , None ) == True : if block_definition . get ( "template_type" ) == "GR_EXPAND_X_H" : convert_public_header ( block_definition ) elif block_definition . get ( "template_type" ) == "GR_EXPAND_X_CC_H_IMPL" or block_definition . get ( "template_type" ) == "GR_EXPAND_X_CC_H" : convert_impl ( block_definition ) rewrite_cmakelists ( block_definition )