|
def | __init__ (self, key_semantics, value_semantics) |
|
def | data (self) |
|
def | __len__ (self) |
|
def | __getitem__ (self, key) |
|
def | __setitem__ (self, key, value) |
|
def | __delitem__ (self, key) |
|
def | __iter__ (self) |
|
def | keys (self) |
|
def | items (self) |
|
def | values (self) |
|
def | __contains__ (self, key) |
|
def | get (self, key, default=None) |
|
def | update (self, otherMap) |
|
def | opt_value (self) |
|
def | __repr__ (self) |
|
Definition at line 515 of file semantics.py.
◆ __init__()
def GaudiConfig2.semantics._DictHelper.__init__ |
( |
|
self, |
|
|
|
key_semantics, |
|
|
|
value_semantics |
|
) |
| |
Definition at line 516 of file semantics.py.
516 def __init__(self, key_semantics, value_semantics):
517 self.key_semantics = key_semantics
518 self.value_semantics = value_semantics
521 self.is_dirty =
False
◆ __contains__()
def GaudiConfig2.semantics._DictHelper.__contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 561 of file semantics.py.
561 def __contains__(self, key):
562 return self.key_semantics.store(key)
in self.data
◆ __delitem__()
def GaudiConfig2.semantics._DictHelper.__delitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 541 of file semantics.py.
541 def __delitem__(self, key):
542 if not self.is_dirty:
543 raise RuntimeError(
"cannot remove elements from the default value")
544 self.data.__delitem__(self.key_semantics.store(key))
◆ __getitem__()
def GaudiConfig2.semantics._DictHelper.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 530 of file semantics.py.
531 return self.value_semantics.load(
532 self.data.
__getitem__(self.key_semantics.store(key))
◆ __iter__()
def GaudiConfig2.semantics._DictHelper.__iter__ |
( |
|
self | ) |
|
Definition at line 546 of file semantics.py.
547 for key
in self.data:
548 yield self.key_semantics.load(key)
◆ __len__()
def GaudiConfig2.semantics._DictHelper.__len__ |
( |
|
self | ) |
|
◆ __repr__()
def GaudiConfig2.semantics._DictHelper.__repr__ |
( |
|
self | ) |
|
◆ __setitem__()
def GaudiConfig2.semantics._DictHelper.__setitem__ |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
Definition at line 535 of file semantics.py.
535 def __setitem__(self, key, value):
537 self.data.__setitem__(
538 self.key_semantics.store(key), self.value_semantics.store(value)
◆ data()
def GaudiConfig2.semantics._DictHelper.data |
( |
|
self | ) |
|
Definition at line 524 of file semantics.py.
525 return self._data
if self.is_dirty
else self.default
◆ get()
def GaudiConfig2.semantics._DictHelper.get |
( |
|
self, |
|
|
|
key, |
|
|
|
default = None |
|
) |
| |
Definition at line 564 of file semantics.py.
564 def get(self, key, default=None):
565 key = self.key_semantics.store(key)
567 return self.value_semantics.load(self.data[key])
◆ items()
def GaudiConfig2.semantics._DictHelper.items |
( |
|
self | ) |
|
Definition at line 553 of file semantics.py.
554 for key, value
in self.data.items():
555 yield (self.key_semantics.load(key), self.value_semantics.load(value))
◆ keys()
def GaudiConfig2.semantics._DictHelper.keys |
( |
|
self | ) |
|
◆ opt_value()
def GaudiConfig2.semantics._DictHelper.opt_value |
( |
|
self | ) |
|
Definition at line 578 of file semantics.py.
580 self.key_semantics.opt_value(key): self.value_semantics.opt_value(value)
581 for key, value
in self.data.items()
◆ update()
def GaudiConfig2.semantics._DictHelper.update |
( |
|
self, |
|
|
|
otherMap |
|
) |
| |
Definition at line 573 of file semantics.py.
573 def update(self, otherMap):
575 for key, value
in otherMap.items():
576 self.data[self.key_semantics.store(key)] = self.value_semantics.store(value)
◆ values()
def GaudiConfig2.semantics._DictHelper.values |
( |
|
self | ) |
|
Definition at line 557 of file semantics.py.
558 for value
in self.data.values():
559 yield self.value_semantics.load(value)
◆ _data
GaudiConfig2.semantics._DictHelper._data |
|
private |
◆ default
GaudiConfig2.semantics._DictHelper.default |
◆ is_dirty
GaudiConfig2.semantics._DictHelper.is_dirty |
◆ key_semantics
GaudiConfig2.semantics._DictHelper.key_semantics |
◆ value_semantics
GaudiConfig2.semantics._DictHelper.value_semantics |
The documentation for this class was generated from the following file: