ATLAS Offline Software
Public Member Functions | List of all members
python.offsets.Offsets Class Reference
Inheritance diagram for python.offsets.Offsets:
Collaboration diagram for python.offsets.Offsets:

Public Member Functions

def __init__ (self)
 
def invoke (self, arg, from_tty)
 

Detailed Description

Dump offsets of members in a structure type.

Definition at line 11 of file offsets.py.

Constructor & Destructor Documentation

◆ __init__()

def python.offsets.Offsets.__init__ (   self)

Definition at line 14 of file offsets.py.

14  def __init__(self):
15  super (Offsets, self).__init__ ('offsets-of', gdb.COMMAND_DATA, gdb.COMPLETE_SYMBOL)
16 

Member Function Documentation

◆ invoke()

def python.offsets.Offsets.invoke (   self,
  arg,
  from_tty 
)

Definition at line 17 of file offsets.py.

17  def invoke(self, arg, from_tty):
18  argv = gdb.string_to_argv(arg)
19  if len(argv) != 1:
20  raise gdb.GdbError('offsets-of takes exactly 1 argument.')
21 
22  stype = gdb.lookup_type(argv[0])
23 
24  print (argv[0], '{')
25  for field in stype.fields():
26  print (' %s => %d' % (field.name, field.bitpos//8))
27  print ('}')
28 
29 Offsets()

The documentation for this class was generated from the following file:
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18