CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
SequenceTypes.ExpandVisitor Class Reference
Inheritance diagram for SequenceTypes.ExpandVisitor:

Public Member Functions

def __init__
 
def enter
 
def leave
 
def result
 

Public Attributes

 l
 

Private Attributes

 _type
 

Detailed Description

Expands the sequence into leafs and UnaryOperators 

Definition at line 545 of file SequenceTypes.py.

Constructor & Destructor Documentation

def SequenceTypes.ExpandVisitor.__init__ (   self,
  type 
)

Definition at line 547 of file SequenceTypes.py.

548  def __init__(self, type):
549  self._type = type
self.l = []

Member Function Documentation

def SequenceTypes.ExpandVisitor.enter (   self,
  visitee 
)

Definition at line 550 of file SequenceTypes.py.

551  def enter(self,visitee):
552  if visitee.isLeaf():
self.l.append(visitee)
def SequenceTypes.ExpandVisitor.leave (   self,
  visitee 
)

Definition at line 553 of file SequenceTypes.py.

References ora::AnyData.l, ora::U_Primitives.l, cond::SmallWORMDict::Frame.l, PixelToFEDAssociateFromAscii::Bdu.l, reference_db.ReferenceDB.l, ora::AllKnowTypeHandlers.l, SequenceTypes.ModuleNodeVisitor.l, SequenceTypes.NodeNameVisitor.l, and SequenceTypes.ExpandVisitor.l.

554  def leave(self, visitee):
555  if isinstance(visitee,_UnarySequenceOperator):
self.l[-1] = visitee
def SequenceTypes.ExpandVisitor.result (   self)

Definition at line 556 of file SequenceTypes.py.

References PGeometricDet::Item._type, python.Handle._type, HistoParams< T >._type, Vispa.Gui.PortConnection.PointToPointConnection._type, MELaserPrim._type, RPCCompDetId._type, HistoParams< TH2F >._type, TrackerGeometryCompare._type, HistoParams< TProfile2D >._type, SequenceTypes.ExpandVisitor._type, ora::AnyData.l, ora::U_Primitives.l, cond::SmallWORMDict::Frame.l, PixelToFEDAssociateFromAscii::Bdu.l, reference_db.ReferenceDB.l, ora::AllKnowTypeHandlers.l, SequenceTypes.ModuleNodeVisitor.l, SequenceTypes.NodeNameVisitor.l, and SequenceTypes.ExpandVisitor.l.

557  def result(self):
558  # why doesn't (sum(self.l) work?
559  seq = self.l[0]
560  if len(self.l) > 1:
561  for el in self.l[1:]:
562  seq += el
563  return self._type(seq)
564 
565 

Member Data Documentation

SequenceTypes.ExpandVisitor._type
private

Definition at line 548 of file SequenceTypes.py.

Referenced by cfg-viewer.unscheduled._proceed(), and SequenceTypes.ExpandVisitor.result().

SequenceTypes.ExpandVisitor.l

Definition at line 549 of file SequenceTypes.py.

Referenced by SequenceTypes.ExpandVisitor.leave(), and SequenceTypes.ExpandVisitor.result().