ATLAS Offline Software
Public Member Functions | Static Private Attributes | List of all members
python.ids.DefectID Class Reference
Inheritance diagram for python.ids.DefectID:
Collaboration diagram for python.ids.DefectID:

Public Member Functions

def __int__ (self)
 
def __getattr__ (self, what)
 
def __setattr__ (self, what, value)
 
def __repr__ (self)
 

Static Private Attributes

list _fields_
 

Detailed Description

Definition at line 27 of file ids.py.

Member Function Documentation

◆ __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)
38 

◆ __int__()

def python.ids.DefectID.__int__ (   self)

Definition at line 31 of file ids.py.

31  def __int__(self):
32  return self.as_int
33 

◆ __repr__()

def python.ids.DefectID.__repr__ (   self)

Definition at line 44 of file ids.py.

44  def __repr__(self):
45  args = self.as_int, self.as_bitfield
46  return '<DefectID value=0x%08x fields=%r>' % args
47 

◆ __setattr__()

def python.ids.DefectID.__setattr__ (   self,
  what,
  value 
)

Definition at line 39 of file ids.py.

39  def __setattr__(self, what, value):
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)
43 

Member Data Documentation

◆ _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:
python.PyAthenaComps.__setattr__
__setattr__
Definition: PyAthenaComps.py:39