The Gaudi Framework  master (53dee381)
Loading...
Searching...
No Matches
ControlFlow._TestVisitor Class Reference

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("{}Entering {}".format(self.depths * " ", type(visitee)))
230 if isinstance(visitee, ControlFlowLeaf):
231 print("{} Algorithm name: {}".format(" " * self.depths, visitee))
232
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition MsgStream.cpp:93

◆ leave()

ControlFlow._TestVisitor.leave ( self,
visitee )

Definition at line 233 of file ControlFlow.py.

233 def leave(self, visitee):
234 print("{}Leaving {}".format(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: