Definition at line 387 of file semantics.py.
◆ __init__()
def GaudiConfig2.semantics._SetHelper.__init__ |
( |
|
self, |
|
|
|
semantics |
|
) |
| |
Definition at line 388 of file semantics.py.
388 def __init__(self, semantics):
389 self.value_semantics = semantics
392 self.is_dirty =
False
◆ __contains__()
def GaudiConfig2.semantics._SetHelper.__contains__ |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 408 of file semantics.py.
408 def __contains__(self, value):
409 return self.value_semantics.store(value)
in self.data
◆ __eq__()
def GaudiConfig2.semantics._SetHelper.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 411 of file semantics.py.
411 def __eq__(self, other):
412 return self.data == other
◆ __iter__()
def GaudiConfig2.semantics._SetHelper.__iter__ |
( |
|
self | ) |
|
Definition at line 414 of file semantics.py.
415 for value
in self.data:
416 yield self.value_semantics.load(value)
◆ __len__()
def GaudiConfig2.semantics._SetHelper.__len__ |
( |
|
self | ) |
|
◆ __repr__()
def GaudiConfig2.semantics._SetHelper.__repr__ |
( |
|
self | ) |
|
Definition at line 435 of file semantics.py.
438 return "{" + repr(sorted(self.data))[1:-1] +
"}"
◆ add()
def GaudiConfig2.semantics._SetHelper.add |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 418 of file semantics.py.
418 def add(self, value):
420 self.data.
add(self.value_semantics.store(value))
◆ data()
def GaudiConfig2.semantics._SetHelper.data |
( |
|
self | ) |
|
Definition at line 402 of file semantics.py.
403 return self._data
if self.is_dirty
else self.default
◆ discard()
def GaudiConfig2.semantics._SetHelper.discard |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 422 of file semantics.py.
422 def discard(self, value):
423 if not self.is_dirty:
424 raise RuntimeError(
"cannot remove elements from the default value")
425 self.data.discard(value)
◆ opt_value()
def GaudiConfig2.semantics._SetHelper.opt_value |
( |
|
self | ) |
|
Definition at line 432 of file semantics.py.
433 return set(self.value_semantics.opt_value(item)
for item
in self.data)
◆ pop()
def GaudiConfig2.semantics._SetHelper.pop |
( |
|
self | ) |
|
Definition at line 427 of file semantics.py.
428 if not self.is_dirty:
429 raise RuntimeError(
"cannot remove elements from the default value")
430 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: