MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / virtual_output_args

Method virtual_output_args

tools/api.py:316–329  ·  view source on GitHub ↗
(self, prefix: Optional[str] = None)

Source from the content-addressed store, hash-verified

314 return self.substitute('${type} ${name}', prefix=prefix)
315
316 def virtual_output_args(self, prefix: Optional[str] = None) -> List[str]:
317 container_type = self.type.remove_generic().basic().str()
318 decl_list: List[str] = []
319 container = (container_type == "std::vector"
320 or container_type == "vector")
321 for t, n, in self.cparams:
322 if not decl_list and container:
323 decl_list.append('{prefix}{n}.data()'.format(prefix=prefix
324 or '',
325 n=n))
326 else:
327 decl_list.append('&{prefix}{n}'.format(prefix=prefix or '',
328 n=n))
329 return decl_list
330
331 def virtual_output_declarations(self,
332 prefix: Optional[str] = None) -> List[str]:

Callers 1

generate_virtual_implFunction · 0.80

Calls 5

basicMethod · 0.80
remove_genericMethod · 0.80
strMethod · 0.45
appendMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected