unreal.Map
¶
- class unreal.Map(key: type, value: type)¶
Bases:
_WrapperBase
,MutableMapping
[_KeyType
,_ValueType
]Type for all Unreal exposed map instances
- classmethod __class_getitem__(*args)¶
__class_getitem__(cls, item) – implemented for type hinting purpose only
- __copy__(self) Map[_KeyType, _ValueType] -- copy this Unreal map ¶
- classmethod cast(cls, key: Type[_KeyType], value: Type[_ValueType], obj: object) Map[_KeyType, _ValueType] -- cast the given object to this Unreal map type ¶
- clear(self) None -- remove all items from this Unreal map ¶
- copy(self) Map[_KeyType, _ValueType] -- copy this Unreal map ¶
- classmethod fromkeys(cls, sequence: Iterable[_KeyType], value: _ValueType) -> Map[_KeyType, _ValueType] -- returns a new Unreal map of keys from the sequence using the given value (types are inferred)¶
- get(self, key: _KeyType, default: _ValueType = ...) _ValueType -- x[key] if key in x, otherwise default ¶
- items(self) ItemsView[_KeyType, _ValueType] -- a set-like view of the key->value pairs of this Unreal map ¶
- keys(self) KeysView[_KeyType] -- a set-like view of the keys of this Unreal map ¶
- pop(self, key: _KeyType, default: _ValueType = ...) _ValueType -- remove key and return its value, or default if key not present, or raise KeyError if no default ¶
- popitem(self) Tuple[_KeyType, _ValueType] -- remove and return an arbitrary pair from this Unreal map, or raise KeyError if the map is empty ¶
- setdefault(self, key: _KeyType, default: _ValueType = ...) _ValueType -- set key to default if key not in x and return the value of key ¶
- update(self, pairs: Mapping[_KeyType, _ValueType] | Iterable[Tuple[_KeyType, _ValueType]] | Iterable[List[_KeyType | _ValueType]]) None -- update this Unreal map from the given mapping or sequence pairs type or key->value arguments ¶
- values(self) ValuesView[_ValueType] -- a view of the values of this Unreal map ¶