The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
ControlFlow._TestVisitor Class Reference
Inheritance diagram for ControlFlow._TestVisitor:
Collaboration diagram for ControlFlow._TestVisitor:

Public Member Functions

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

Public Attributes

int depths = 0
 

Detailed Description

Definition at line 223 of file ControlFlow.py.

Constructor & Destructor Documentation

◆ __init__()

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()

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()

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 = 0

Definition at line 225 of file ControlFlow.py.


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