test
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 Member Functions | Static Private Attributes
Modules._Module Class Reference
Inheritance diagram for Modules._Module:
Mixins._ConfigureComponent Mixins._TypedParameterizable Mixins._Labelable SequenceTypes._SequenceLeaf Mixins._Parameterizable SequenceTypes._Sequenceable Modules.EDAnalyzer Modules.EDFilter Modules.EDProducer Modules.OutputModule

Public Member Functions

def __init__
 
def insertInto
 
def setPrerequisites
 
- Public Member Functions inherited from Mixins._TypedParameterizable
def __init__
 
def clone
 
def copy
 
def dumpConfig
 
def dumpPython
 
def dumpPythonAttributes
 
def insertInto
 
def moduleLabel_
 
def nameInProcessDesc_
 
def type_
 
- Public Member Functions inherited from Mixins._Parameterizable
def __delattr__
 
def __init__
 
def __repr__
 
def __setattr__
 
def dumpPython
 
def getParameter
 
def hasParameter
 
def insertContentsInto
 
def isFrozen
 
def isModified
 
def parameterNames_
 
def parameters_
 
def setIsFrozen
 
- Public Member Functions inherited from Mixins._Labelable
def __str__
 
def dumpSequenceConfig
 
def dumpSequencePython
 
def hasLabel_
 
def label
 
def label_
 
def setLabel
 
- Public Member Functions inherited from SequenceTypes._SequenceLeaf
def __init__
 
def isLeaf
 
- Public Member Functions inherited from SequenceTypes._Sequenceable
def __add__
 
def __init__
 
def __invert__
 
def __mul__
 
def isLeaf
 
def isOperation
 
def resolve
 
def visitNode
 

Private Member Functions

def _clonesequence
 
def _errorstr
 

Static Private Attributes

 __isStrict__ = False
 

Detailed Description

base class for classes which denote framework event based 'modules'

Definition at line 115 of file Modules.py.

Constructor & Destructor Documentation

def Modules._Module.__init__ (   self,
  type_,
  arg,
  kargs 
)

Definition at line 118 of file Modules.py.

References Mixins.saveOrigin(), Mixins._ParameterTypeBase.setIsFrozen(), and Mixins._Parameterizable.setIsFrozen().

119  def __init__(self,type_,*arg,**kargs):
120  super(_Module,self).__init__(type_,*arg,**kargs)
121  if _Module.__isStrict__:
122  self.setIsFrozen()
saveOrigin(self, 2)
def saveOrigin
Definition: Mixins.py:604

Member Function Documentation

def Modules._Module._clonesequence (   self,
  lookuptable 
)
private

Definition at line 123 of file Modules.py.

References Modules._Module._errorstr().

124  def _clonesequence(self, lookuptable):
125  try:
126  return lookuptable[id(self)]
127  except:
raise ModuleCloneError(self._errorstr())
def _clonesequence
Definition: Modules.py:123
def Modules._Module._errorstr (   self)
private

Definition at line 128 of file Modules.py.

Referenced by Modules._Module._clonesequence().

129  def _errorstr(self):
130  # return something like "EDAnalyzer("foo", ...)"
131  typename = format_typename(self)
132  return "%s('%s', ...)" %(typename, self.type_())
def Modules._Module.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 136 of file Modules.py.

137  def insertInto(self, parameterSet, myname):
138  if "libraries_" in self.__dict__:
139  from ctypes import LibraryLoader, CDLL
140  import platform
141  loader = LibraryLoader(CDLL)
142  ext = platform.uname()[0] == "Darwin" and "dylib" or "so"
143  [loader.LoadLibrary("lib%s.%s" % (l, ext)) for l in self.libraries_]
144  super(_Module,self).insertInto(parameterSet,myname)
def Modules._Module.setPrerequisites (   self,
  libs 
)

Definition at line 133 of file Modules.py.

134  def setPrerequisites(self, *libs):
135  self.__dict__["libraries_"] = libs
def setPrerequisites
Definition: Modules.py:133

Member Data Documentation

Modules._Module.__isStrict__ = False
staticprivate

Definition at line 117 of file Modules.py.