ATLAS Offline Software
Loading...
Searching...
No Matches
BPhysPyHelpers.BPyWrapper Class Reference
Inheritance diagram for BPhysPyHelpers.BPyWrapper:
Collaboration diagram for BPhysPyHelpers.BPyWrapper:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, wclass, *args, **kargs)
 __getattr__ (self, attr)
 __setattr__ (self, attr, value)
 __call__ (self, *args, **kwargs)

Public Attributes

 wclass

Static Private Attributes

dict __slots__ = {'wclass' : object}

Detailed Description

Definition at line 30 of file BPhysPyHelpers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

BPhysPyHelpers.BPyWrapper.__init__ ( self,
wclass,
* args,
** kargs )

Definition at line 33 of file BPhysPyHelpers.py.

33 def __init__(self, wclass, *args, **kargs):
34 object.__setattr__(self, 'wclass', wclass(*args, **kargs))
35 # the important part: make __slot__ variables attributes
36 for n,v in self.wclass.__slots__.items():
37 if not hasattr(self.wclass, n):
38 setattr(self.wclass, n, v)
39

Member Function Documentation

◆ __call__()

BPhysPyHelpers.BPyWrapper.__call__ ( self,
* args,
** kwargs )

Definition at line 46 of file BPhysPyHelpers.py.

46 def __call__(self, *args, **kwargs):
47 return self.wclass(*args, **kwargs)
48#--------------------------------------------------------------------
49#
50# ensure default contents of __slots__ dict are available as attributes
51#

◆ __getattr__()

BPhysPyHelpers.BPyWrapper.__getattr__ ( self,
attr )

Definition at line 40 of file BPhysPyHelpers.py.

40 def __getattr__(self, attr):
41 return self.wclass.__getattribute__(attr)
42

◆ __setattr__()

BPhysPyHelpers.BPyWrapper.__setattr__ ( self,
attr,
value )

Definition at line 43 of file BPhysPyHelpers.py.

43 def __setattr__(self, attr, value):
44 setattr(self.wclass, attr, value)
45

Member Data Documentation

◆ __slots__

dict BPhysPyHelpers.BPyWrapper.__slots__ = {'wclass' : object}
staticprivate

Definition at line 31 of file BPhysPyHelpers.py.

◆ wclass

BPhysPyHelpers.BPyWrapper.wclass

Definition at line 37 of file BPhysPyHelpers.py.


The documentation for this class was generated from the following file: