Searched refs:enumvalues (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython2/Demo/newmetaclasses/ |
D | Enum.py | 40 enumvalues = ["%s: %d" % (val, getattr(cls, val)) 42 if enumvalues: 43 s2 = ": {%s}" % ", ".join(enumvalues)
|
/external/python/cffi/cffi/ |
D | model.py | 491 def __init__(self, name, enumerators, enumvalues, baseinttype=None): argument 494 self.enumvalues = enumvalues 513 self.enumerators, self.enumvalues, 520 if self.enumvalues: 521 smallest_value = min(self.enumvalues) 522 largest_value = max(self.enumvalues)
|
D | vengine_gen.py | 520 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues): 528 enumvalues = [self._load_constant(True, tp, enumerator, module) 530 tp.enumvalues = tuple(enumvalues) 537 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
|
D | vengine_cpy.py | 706 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues): 719 enumvalues = [getattr(module, enumerator) 721 tp.enumvalues = tuple(enumvalues) 725 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
|
D | cparser.py | 870 enumvalues = [] 879 enumvalues.append(nextenumvalue) 883 enumvalues = tuple(enumvalues) 884 tp = model.EnumType(explicit_name, enumerators, enumvalues)
|
D | backend_ctypes.py | 949 def new_enum_type(self, name, enumerators, enumvalues, CTypesInt): argument 951 reverse_mapping = dict(zip(reversed(enumvalues),
|
D | api.py | 890 library.__dict__[name] = tp.enumvalues[i]
|
D | recompiler.py | 1105 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
|
/external/python/cffi/c/ |
D | realize_c_type.c | 482 PyObject *enumerators = NULL, *enumvalues = NULL, *tmp; in realize_c_type_or_func() local 500 enumvalues = PyTuple_New(n); in realize_c_type_or_func() 501 if (enumvalues == NULL) { in realize_c_type_or_func() 524 PyTuple_SET_ITEM(enumvalues, i, tmp); in realize_c_type_or_func() 534 enumvalues, basetd); in realize_c_type_or_func() 537 Py_DECREF(enumvalues); in realize_c_type_or_func()
|
D | _cffi_backend.c | 6083 PyObject *enumerators, *enumvalues; local 6092 &PyTuple_Type, &enumvalues, 6097 if (n != PyTuple_GET_SIZE(enumvalues)) { 6118 PyObject *value = PyTuple_GET_ITEM(enumvalues, i);
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_containers.cc | 1136 namespace enumvalues { namespace 1204 return descriptor::NewMappingByName(&enumvalues::ContainerDef, descriptor); in NewMessageEnumValuesByName() 1321 namespace enumvalues { namespace 1375 return descriptor::NewMappingByName(&enumvalues::ContainerDef, descriptor); in NewEnumValuesByName() 1379 return descriptor::NewMappingByNumber(&enumvalues::ContainerDef, descriptor); in NewEnumValuesByNumber() 1383 return descriptor::NewSequence(&enumvalues::ContainerDef, descriptor); in NewEnumValuesSeq()
|