Home | History | Annotate | Download | only in generator

Lines Matching defs:Typedef

273 class Typedef(object):
274 """Represents a TPM typedef.
277 old_type: The existing type in a typedef statement.
278 new_type: The new type in a typedef statement.
281 _TYPEDEF = 'typedef %(old_type)s %(new_type)s;\n'
301 """Initializes a Typedef instance.
304 old_type: The existing type in a typedef statement.
305 new_type: The new type in a typedef statement.
311 """Writes a typedef definition to |out_file|.
325 """Writes a typedef definition to |out_file|.
345 """Writes a serialize and parse function for the typedef to |out_file|.
671 (e.g. Typedef) which is why the unused_* args exist.
926 - Parses typedefs to a list of Typedef objects.
1050 A list of Typedef objects.
1066 t = Typedef(old_type, new_type)
1077 alias. A Typedef object is created for each of these aliases and added to
1081 types: A list of Typedef objects.
1101 # Create a typedef for the constant group name (e.g. TPM_RC).
1102 typedef = Typedef(constant_type, constant_typename)
1103 typemap[constant_typename] = typedef
1104 types.append(typedef)
1671 """Prints a callback typedef for this command.
1680 out_file.write(' typedef base::Callback<void(%s)> %sResponse;\n' %
1977 types: A list of Typedef objects.
2003 for typedef in types:
2004 typedef.Output(out_file, defined_types, typemap)
2019 for typedef in types:
2020 out_file.write(_SERIALIZE_DECLARATION % {'type': typedef.new_type})
2044 types: A list of Typedef objects.
2058 for typedef in types:
2059 typedef.OutputSerialize(out_file, serialized_types, typemap)