CMS 3D CMS Logo

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

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 177 of file helpers.py.

Constructor & Destructor Documentation

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

Definition at line 179 of file helpers.py.

180  def __init__(self, gatheredInstance=cms._Module):
181  self._modules = []
self._gatheredInstance= gatheredInstance

Member Function Documentation

def helpers.GatherAllModulesVisitor.enter (   self,
  visitee 
)

Definition at line 182 of file helpers.py.

References helpers.GatherAllModulesVisitor._gatheredInstance.

183  def enter(self,visitee):
184  if isinstance(visitee,self._gatheredInstance):
self._modules.append(visitee)
def helpers.GatherAllModulesVisitor.leave (   self,
  visitee 
)

Definition at line 185 of file helpers.py.

186  def leave(self,visitee):
pass
def helpers.GatherAllModulesVisitor.modules (   self)

Definition at line 187 of file helpers.py.

188  def modules(self):
189  return self._modules

Member Data Documentation

helpers.GatherAllModulesVisitor._gatheredInstance
private

Definition at line 181 of file helpers.py.

Referenced by HiHelperTools.GatherAllModulesVisitor.enter(), and helpers.GatherAllModulesVisitor.enter().

helpers.GatherAllModulesVisitor._modules
private

Definition at line 180 of file helpers.py.

Referenced by helpers.GatherAllModulesVisitor.modules().