ATLAS Offline Software
Loading...
Searching...
No Matches
python.DebuggingContext.Context Class Reference
Inheritance diagram for python.DebuggingContext.Context:
Collaboration diagram for python.DebuggingContext.Context:

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, c)
 __del__ (self)
 current (cls)
 complete (cls)

Static Public Attributes

str hint = "Unknown context (enable it with ComponentAccumulator.debugMode = \"trackCA trackEventAlgo etc. see ComponentAccumulator documentation\")"

Static Private Attributes

list __context = []

Detailed Description

Keeps the context info as a stack
Usage:
context = Context("context string")  # this is it

Definition at line 5 of file DebuggingContext.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.DebuggingContext.Context.__init__ ( self,
c )

Definition at line 14 of file DebuggingContext.py.

14 def __init__(self, c):
15 Context.__context.append(c)
16

◆ __del__()

python.DebuggingContext.Context.__del__ ( self)

Definition at line 17 of file DebuggingContext.py.

17 def __del__(self):
18 Context.__context.pop()
19

Member Function Documentation

◆ complete()

python.DebuggingContext.Context.complete ( cls)

Definition at line 25 of file DebuggingContext.py.

25 def complete(cls):
26 return Context.hint if not Context.__context else "\n".join(Context.__context)
27
28

◆ current()

python.DebuggingContext.Context.current ( cls)

Definition at line 21 of file DebuggingContext.py.

21 def current(cls):
22 return Context.__context[-1]
23

Member Data Documentation

◆ __context

list python.DebuggingContext.Context.__context = []
staticprivate

Definition at line 12 of file DebuggingContext.py.

◆ hint

str python.DebuggingContext.Context.hint = "Unknown context (enable it with ComponentAccumulator.debugMode = \"trackCA trackEventAlgo etc. see ComponentAccumulator documentation\")"
static

Definition at line 11 of file DebuggingContext.py.


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