Definition at line 470 of file semantics.py.
◆ __init__()
def GaudiConfig2.semantics._SetHelper.__init__ |
( |
|
self, |
|
|
|
semantics |
|
) |
| |
Definition at line 471 of file semantics.py.
471 def __init__(self, semantics):
472 self.value_semantics = semantics
475 self.is_dirty =
False
◆ __contains__()
def GaudiConfig2.semantics._SetHelper.__contains__ |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 491 of file semantics.py.
491 def __contains__(self, value):
492 return self.value_semantics.store(value)
in self.data
◆ __eq__()
def GaudiConfig2.semantics._SetHelper.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 494 of file semantics.py.
494 def __eq__(self, other):
495 return self.data == other
◆ __iter__()
def GaudiConfig2.semantics._SetHelper.__iter__ |
( |
|
self | ) |
|
Definition at line 497 of file semantics.py.
498 for value
in self.data:
499 yield self.value_semantics.load(value)
◆ __len__()
def GaudiConfig2.semantics._SetHelper.__len__ |
( |
|
self | ) |
|
◆ __repr__()
def GaudiConfig2.semantics._SetHelper.__repr__ |
( |
|
self | ) |
|
Definition at line 518 of file semantics.py.
521 return "{" + repr(sorted(self.data))[1:-1] +
"}"
◆ add()
def GaudiConfig2.semantics._SetHelper.add |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 501 of file semantics.py.
501 def add(self, value):
503 self.data.
add(self.value_semantics.store(value))
◆ data()
def GaudiConfig2.semantics._SetHelper.data |
( |
|
self | ) |
|
Definition at line 485 of file semantics.py.
486 return self._data
if self.is_dirty
else self.default
◆ discard()
def GaudiConfig2.semantics._SetHelper.discard |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 505 of file semantics.py.
505 def discard(self, value):
506 if not self.is_dirty:
507 raise RuntimeError(
"cannot remove elements from the default value")
508 self.data.discard(value)
◆ opt_value()
def GaudiConfig2.semantics._SetHelper.opt_value |
( |
|
self | ) |
|
Definition at line 515 of file semantics.py.
516 return set(self.value_semantics.opt_value(item)
for item
in self.data)
◆ pop()
def GaudiConfig2.semantics._SetHelper.pop |
( |
|
self | ) |
|
Definition at line 510 of file semantics.py.
511 if not self.is_dirty:
512 raise RuntimeError(
"cannot remove elements from the default value")
513 return self.data.pop()
◆ _data
GaudiConfig2.semantics._SetHelper._data |
|
private |
◆ data
GaudiConfig2.semantics._SetHelper.data |
◆ default
GaudiConfig2.semantics._SetHelper.default |
◆ difference
GaudiConfig2.semantics._SetHelper.difference |
|
static |
◆ intersection
GaudiConfig2.semantics._SetHelper.intersection |
|
static |
◆ is_dirty
GaudiConfig2.semantics._SetHelper.is_dirty |
◆ symmetric_difference
GaudiConfig2.semantics._SetHelper.symmetric_difference |
|
static |
◆ union
GaudiConfig2.semantics._SetHelper.union |
|
static |
◆ update
GaudiConfig2.semantics._SetHelper.update |
|
static |
◆ value_semantics
GaudiConfig2.semantics._SetHelper.value_semantics |
The documentation for this class was generated from the following file: