Home
last modified time | relevance | path

Searched refs:enum_class (Results 1 – 19 of 19) sorted by relevance

/external/python/enum34/enum/
D__init__.py200 enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict)
201 enum_class._member_names_ = [] # names in random order
203 enum_class._member_map_ = OrderedDict()
205 enum_class._member_map_ = {} # name->value map
206 enum_class._member_type_ = member_type
209 enum_class._value2member_map_ = {}
216 __new__ = enum_class.__new__
226 enum_member = __new__(enum_class)
230 enum_member = __new__(enum_class, *args)
235 enum_member.__objclass__ = enum_class
[all …]
/external/python/cpython3/Lib/
Denum.py215 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds)
216 enum_class._member_names_ = [] # names in definition order
217 enum_class._member_map_ = {} # name->value map
218 enum_class._member_type_ = member_type
223 k for c in enum_class.mro()
229 enum_class._value2member_map_ = {}
248 _make_class_unpicklable(enum_class)
271 _make_class_unpicklable(enum_class)
285 enum_member = __new__(enum_class)
289 enum_member = __new__(enum_class, *args)
[all …]
/external/python/absl-py/absl/flags/
D_argument_parser.py371 def __init__(self, enum_class, case_sensitive=True): argument
387 if not issubclass(enum_class, enum.Enum):
388 raise TypeError('{} is not a subclass of Enum.'.format(enum_class))
389 if not enum_class.__members__:
391 .format(enum_class))
394 name.lower() for name in enum_class.__members__)
404 self.enum_class = enum_class
407 self._member_names = tuple(enum_class.__members__)
410 name.lower() for name in enum_class.__members__)
429 if isinstance(argument, self.enum_class):
[all …]
D_flag.py355 enum_class, argument
360 enum_class, case_sensitive=case_sensitive)
368 for enum_value in self.parser.enum_class.__members__.keys():
462 enum_class, argument
466 enum_class, case_sensitive=case_sensitive)
477 for enum_value in self.parser.enum_class.__members__.keys():
D_defines.py477 enum_class,
509 enum_class,
825 enum_class,
862 name, default, help, enum_class, case_sensitive=case_sensitive),
D_defines.pyi294 enum_class: Type[_ET],
308 enum_class: Type[_ET],
321 enum_class: Type[_ET],
583 enum_class: Type[_ET],
596 enum_class: Type[_ET],
609 enum_class: Type[_ET],
624 enum_class: Type[_ET],
636 enum_class: Type[_ET],
D_flag.pyi113 enum_class: Type[_ET],
129 enum_class: Type[_ET],
D_argument_parser.pyi80 def __init__(self, enum_class: Type[_ET], case_sensitive: bool=...) -> None:
/external/llvm/lib/DebugInfo/PDB/Raw/
DEnumTables.cpp16 #define PDB_ENUM_CLASS_ENT(enum_class, enum) \ argument
17 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DEnumTables.cpp15 #define PDB_ENUM_CLASS_ENT(enum_class, enum) \ argument
16 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/external/llvm/tools/llvm-readobj/
Dllvm-readobj.h68 #define LLVM_READOBJ_ENUM_CLASS_ENT(enum_class, enum) \ argument
69 { #enum, std::underlying_type<enum_class>::type(enum_class::enum) }
/external/python/parse_type/parse_type/
Dbuilder.py108 enum_class = enum_mappings
109 enum_mappings = enum_class.__members__
/external/llvm/lib/DebugInfo/CodeView/
DEnumTables.cpp15 #define CV_ENUM_CLASS_ENT(enum_class, enum) \ argument
16 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
DTypeDumper.cpp72 #define ENUM_ENTRY(enum_class, enum) \ argument
73 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DEnumTables.cpp16 #define CV_ENUM_CLASS_ENT(enum_class, enum) \ argument
17 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
DTypeDumpVisitor.cpp28 #define ENUM_ENTRY(enum_class, enum) \ argument
29 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/external/llvm/bindings/python/llvm/
Dcore.py603 for enum_class, enum_spec in enums:
606 enum_class.register(name, value)
/external/python/absl-py/
DCHANGELOG.md260 * (flags) DEFINE_multi_enum_class: a multi flag variant of enum_class.
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DDwarf.def308 HANDLE_DW_AT(0x6d, enum_class, 4, DWARF)