CMS 3D CMS Logo

Public Member Functions | Private Attributes

helpers::GatherAllModulesVisitor Class Reference

List of all members.

Public Member Functions

def __init__
def enter
def leave
def modules

Private Attributes

 _gatheredInstance
 _modules

Detailed Description

Visitor that travels within a cms.Sequence, and returns a list of objects of type gatheredInance(e.g. modules) that have it

Definition at line 115 of file helpers.py.


Constructor & Destructor Documentation

def helpers::GatherAllModulesVisitor::__init__ (   self,
  gatheredInstance = cms._Module 
)

Definition at line 117 of file helpers.py.

00118                                                     :
00119         self._modules = []
        self._gatheredInstance= gatheredInstance

Member Function Documentation

def helpers::GatherAllModulesVisitor::enter (   self,
  visitee 
)

Definition at line 120 of file helpers.py.

00121                            :
00122         if isinstance(visitee,self._gatheredInstance):
            self._modules.append(visitee)
def helpers::GatherAllModulesVisitor::leave (   self,
  visitee 
)

Definition at line 123 of file helpers.py.

00124                            :
        pass
def helpers::GatherAllModulesVisitor::modules (   self)

Definition at line 125 of file helpers.py.

00126                      :
00127         return self._modules


Member Data Documentation

Definition at line 117 of file helpers.py.

Definition at line 117 of file helpers.py.