NameMappingSetView¶
- class lsst.daf.butler.NameMappingSetView(mapping: Mapping[str, K_co])¶
Bases:
NamedValueAbstractSet
[K_co
]A lightweight implementation of
NamedValueAbstractSet
.Backed by a mapping from name to named object.
Attributes Summary
Return set of names associated with the keys, in the same order.
Methods Summary
Return a mapping view with names as keys.
get
(key[, default])Return the element with the given name.
isdisjoint
(other)Return True if two sets have a null intersection.
Attributes Documentation
- names¶
Methods Documentation
- asMapping() Mapping[str, K_co] ¶
Return a mapping view with names as keys.
- Returns:
- dict
Mapping
A dictionary-like view with
values() == self
.
- dict
- get(key: Any, default: Any = None) Any ¶
Return the element with the given name.
- Parameters:
- key
typing.Any
The name of the element to be requested.
- default
typing.Any
, optional The value returned if no such element is present.
- key
- Returns:
- result
typing.Any
The value of the element.
- result
- isdisjoint(other)¶
Return True if two sets have a null intersection.