parameters: (self, defined_structs = [])
return_statement: return result
docstring: Return the vector type.
docstring_summary: Return the vector type.
docstring_tokens: Return the vector type .
function: def get_result_vector_type(self, defined_structs = []):
          """ Return the vector type. """
          if not self.has_name():
              raise Exception('Cannot use vector as a return type')
  
          type = self.result_value[0]['result_type']
          value = self.result_value[0]['result_value']
  
          result = {}
          if type == 'string':
              result['value'] = 'cef_string_list_t'
              result['format'] = 'single'
              return result
  
          if type == 'simple':
              str = value
              if self.is_const():
                  str += ' const'
              str += '*'
              result['value'] = str
          elif type == 'refptr' or type == 'ownptr' or type == 'rawptr':
              str = ''
              if not value[:-1] in defined_structs:
                  str += 'struct _'
              str += value
              if self.is_const():
                  str += ' const'
              str += '*'
              result['value'] = str
          else:
              raise Exception('Unsupported vector type: '+type)
  
          # vector values must be passed as a value array parameter
          # and a size parameter
          result['format'] = 'multi-arg'
          return result
function_tokens: def get_result_vector_type ( self , defined_structs = [ ] ) : if not self . has_name ( ) : raise Exception ( 'Cannot use vector as a return type' ) type = self . result_value [ 0 ] [ 'result_type' ] value = self . result_value [ 0 ] [ 'result_value' ] result = { } if type == 'string' : result [ 'value' ] = 'cef_string_list_t' result [ 'format' ] = 'single' return result if type == 'simple' : str = value if self . is_const ( ) : str += ' const' str += '*' result [ 'value' ] = str elif type == 'refptr' or type == 'ownptr' or type == 'rawptr' : str = '' if not value [ : - 1 ] in defined_structs : str += 'struct _' str += value if self . is_const ( ) : str += ' const' str += '*' result [ 'value' ] = str else : raise Exception ( 'Unsupported vector type: ' + type ) # vector values must be passed as a value array parameter # and a size parameter result [ 'format' ] = 'multi-arg' return result