Semantics for all data handle keys (Read, Write, Decor, Cond).
Definition at line 44 of file AtlasSemantics.py.
◆ __init__()
def python.AtlasSemantics.VarHandleKeySemantics.__init__ |
( |
|
self, |
|
|
|
cpp_type |
|
) |
| |
Definition at line 50 of file AtlasSemantics.py.
53 self._type =
next(GaudiConfig2.semantics.extract_template_args(cpp_type))
54 self._isCond =
'CondHandle' in cpp_type
56 if cpp_type.startswith(
"SG::Read"):
58 elif cpp_type.startswith(
"SG::Write"):
61 raise TypeError(f
"C++ type {cpp_type} not supported")
◆ store()
def python.AtlasSemantics.VarHandleKeySemantics.store |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 63 of file AtlasSemantics.py.
63 def store(self, value):
64 if isinstance(value, DataHandle):
66 elif isinstance(value, str):
69 raise TypeError(f
"cannot assign {value!r} ({type(value)}) to {self.name}"
70 ", expected string or DataHandle")
71 return DataHandle(v, self._mode, self._type, self._isCond)
◆ __handled_types__
tuple python.AtlasSemantics.VarHandleKeySemantics.__handled_types__ = (re.compile(r"SG::.*HandleKey<.*>$"),) |
|
staticprivate |
◆ _isCond
python.AtlasSemantics.VarHandleKeySemantics._isCond |
|
private |
◆ _mode
python.AtlasSemantics.VarHandleKeySemantics._mode |
|
private |
◆ _type
python.AtlasSemantics.VarHandleKeySemantics._type |
|
private |
The documentation for this class was generated from the following file: