parameters: (self, enum_name, type_)
return_statement: return c.Eblock('};')
docstring: Generate the declaration of a C++ enum.
docstring_summary: Generate the declaration of a C++ enum.
docstring_tokens: Generate the declaration of a C ++ enum .
function: def _GenerateEnumDeclaration(self, enum_name, type_):
      """Generate the declaration of a C++ enum.
      """
      c = Code()
      c.Sblock('enum %s {' % enum_name)
      c.Append(self._type_helper.GetEnumNoneValue(type_) + ',')
      for value in type_.enum_values:
        c.Append(self._type_helper.GetEnumValue(type_, value) + ',')
      return c.Eblock('};')
function_tokens: def _GenerateEnumDeclaration ( self , enum_name , type_ ) : c = Code ( ) c . Sblock ( 'enum %s {' % enum_name ) c . Append ( self . _type_helper . GetEnumNoneValue ( type_ ) + ',' ) for value in type_ . enum_values : c . Append ( self . _type_helper . GetEnumValue ( type_ , value ) + ',' ) return c . Eblock ( '};' )