Definition at line 27 of file ids.py.
◆ __getattr__()
def python.ids.DefectID.__getattr__ |
( |
|
self, |
|
|
|
what |
|
) |
| |
Definition at line 34 of file ids.py.
34 def __getattr__(self, what):
35 if any(what == field[0]
for field
in DefectIDBitfield._fields_):
36 return getattr(self.as_bitfield, what)
37 raise AttributeError(what)
◆ __int__()
def python.ids.DefectID.__int__ |
( |
|
self | ) |
|
◆ __repr__()
def python.ids.DefectID.__repr__ |
( |
|
self | ) |
|
Definition at line 44 of file ids.py.
45 args = self.as_int, self.as_bitfield
46 return '<DefectID value=0x%08x fields=%r>' % args
◆ __setattr__()
def python.ids.DefectID.__setattr__ |
( |
|
self, |
|
|
|
what, |
|
|
|
value |
|
) |
| |
Definition at line 39 of file ids.py.
40 if any(what == field[0]
for field
in DefectIDBitfield._fields_):
41 return setattr(self.as_bitfield, what, value)
42 return super(DefectID, self).
__setattr__(what, value)
◆ _fields_
list python.ids.DefectID._fields_ |
|
staticprivate |
Initial value:= [("as_int", c_uint),
("as_bitfield", DefectIDBitfield)]
Definition at line 28 of file ids.py.
The documentation for this class was generated from the following file: