The Gaudi Framework  v37r0 (b608885e)
GaudiConfig.ControlFlow.ControlFlowNode Class Reference
Inheritance diagram for GaudiConfig.ControlFlow.ControlFlowNode:
Collaboration diagram for GaudiConfig.ControlFlow.ControlFlowNode:

Public Member Functions

def __and__ (self, rhs)
 
def __or__ (self, rhs)
 
def __invert__ (self)
 
def __rshift__ (self, rhs)
 
def visitNode (self, visitor)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def getFullName (self)
 

Private Member Functions

def _visitSubNodes (self, visitor)
 

Private Attributes

 _fullname
 

Detailed Description

Basic entry in the control flow graph.

Definition at line 19 of file ControlFlow.py.

Member Function Documentation

◆ __and__()

def GaudiConfig.ControlFlow.ControlFlowNode.__and__ (   self,
  rhs 
)

Reimplemented in GaudiConfig.ControlFlow.ControlFlowBool.

Definition at line 24 of file ControlFlow.py.

24  def __and__(self, rhs):
25  if rhs is CFTrue:
26  return self
27  elif rhs is CFFalse:
28  return CFFalse
29  return AndNode(self, rhs)
30 

◆ __eq__()

def GaudiConfig.ControlFlow.ControlFlowNode.__eq__ (   self,
  other 
)

Definition at line 52 of file ControlFlow.py.

52  def __eq__(self, other):
53  return repr(self) == repr(other)
54 

◆ __hash__()

def GaudiConfig.ControlFlow.ControlFlowNode.__hash__ (   self)
Return a unique identifier for this object.

As we use the `repr` of this object to check for equality, we use it
here to define uniqueness.

Definition at line 55 of file ControlFlow.py.

55  def __hash__(self):
56  """Return a unique identifier for this object.
57 
58  As we use the `repr` of this object to check for equality, we use it
59  here to define uniqueness.
60  """
61  # The hash of the 1-tuple containing the repr of this object
62  return hash((repr(self),))
63 

◆ __invert__()

def GaudiConfig.ControlFlow.ControlFlowNode.__invert__ (   self)

Reimplemented in GaudiConfig.ControlFlow.ControlFlowBool.

Definition at line 38 of file ControlFlow.py.

38  def __invert__(self):
39  return InvertNode(self)
40 

◆ __or__()

def GaudiConfig.ControlFlow.ControlFlowNode.__or__ (   self,
  rhs 
)

Reimplemented in GaudiConfig.ControlFlow.ControlFlowBool.

Definition at line 31 of file ControlFlow.py.

31  def __or__(self, rhs):
32  if rhs is CFFalse:
33  return self
34  elif rhs is CFTrue:
35  return CFTrue
36  return OrNode(self, rhs)
37 

◆ __rshift__()

def GaudiConfig.ControlFlow.ControlFlowNode.__rshift__ (   self,
  rhs 
)

Definition at line 41 of file ControlFlow.py.

41  def __rshift__(self, rhs):
42  return OrderedNode(self, rhs)
43 

◆ _visitSubNodes()

def GaudiConfig.ControlFlow.ControlFlowNode._visitSubNodes (   self,
  visitor 
)
private

◆ getFullName()

def GaudiConfig.ControlFlow.ControlFlowNode.getFullName (   self)
Allow use of an expression as an algorihtm/sequence in a Gaudi job
configuration.

Convert the expression in nested sequencers and return the full name of
the top one.

Definition at line 64 of file ControlFlow.py.

64  def getFullName(self):
65  """
66  Allow use of an expression as an algorihtm/sequence in a Gaudi job
67  configuration.
68 
69  Convert the expression in nested sequencers and return the full name of
70  the top one.
71  """
72  if not hasattr(self, "_fullname"):
73  from GaudiKernel.Configurable import makeSequences
74 
75  self._fullname = makeSequences(self).getFullName()
76  return self._fullname
77 
78 

◆ visitNode()

def GaudiConfig.ControlFlow.ControlFlowNode.visitNode (   self,
  visitor 
)

Definition at line 44 of file ControlFlow.py.

44  def visitNode(self, visitor):
45  visitor.enter(self)
46  self._visitSubNodes(visitor)
47  visitor.leave(self)
48 

Member Data Documentation

◆ _fullname

GaudiConfig.ControlFlow.ControlFlowNode._fullname
private

Definition at line 75 of file ControlFlow.py.


The documentation for this class was generated from the following file:
GaudiKernel.Configurable.makeSequences
def makeSequences(expression)
Definition: Configurable.py:1838
GaudiKernel.Configurable
Definition: Configurable.py:1