The Gaudi Framework  master (37c0b60a)
ControlFlow._TestVisitor Class Reference
Inheritance diagram for ControlFlow._TestVisitor:
Collaboration diagram for ControlFlow._TestVisitor:

Public Member Functions

def __init__ (self)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Public Attributes

 depths
 

Detailed Description

Definition at line 223 of file ControlFlow.py.

Constructor & Destructor Documentation

◆ __init__()

def ControlFlow._TestVisitor.__init__ (   self)

Definition at line 224 of file ControlFlow.py.

224  def __init__(self):
225  self.depths = 0
226 

Member Function Documentation

◆ enter()

def ControlFlow._TestVisitor.enter (   self,
  visitee 
)

Definition at line 227 of file ControlFlow.py.

227  def enter(self, visitee):
228  self.depths += 1
229  print("%sEntering %s" % (self.depths * " ", type(visitee)))
230  if isinstance(visitee, ControlFlowLeaf):
231  print("%s Algorithm name: %s" % (" " * self.depths, visitee))
232 

◆ leave()

def ControlFlow._TestVisitor.leave (   self,
  visitee 
)

Definition at line 233 of file ControlFlow.py.

233  def leave(self, visitee):
234  print("%sLeaving %s" % (self.depths * " ", type(visitee)))
235  self.depths -= 1
236 
237 

Member Data Documentation

◆ depths

ControlFlow._TestVisitor.depths

Definition at line 225 of file ControlFlow.py.


The documentation for this class was generated from the following file:
gaudirun.type
type
Definition: gaudirun.py:160