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