CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SequenceTypes._SequenceCollection Class Reference
Inheritance diagram for SequenceTypes._SequenceCollection:
SequenceTypes._Sequenceable

Public Member Functions

def __add__ (self, rhs)
 
def __init__ (self, seqList)
 
def __mul__ (self, rhs)
 
def __str__ (self)
 
def dumpSequenceConfig (self)
 
def dumpSequencePython (self, options=PrintOptions())
 
def index (self, item)
 
def insert (self, index, item)
 
def resolve (self, processDict, keepIfCannotResolve=False)
 
def visitNode (self, visitor)
 
- Public Member Functions inherited from SequenceTypes._Sequenceable
def __add__ (self, rhs)
 
def __init__ (self)
 
def __invert__ (self)
 
def __mul__ (self, rhs)
 
def isLeaf (self)
 
def isOperation (self)
 
def resolve (self, processDict, keepIfCannotResolve=False)
 
def visitNode (self, visitor)
 

Private Member Functions

def _appendToCollection (self, collection)
 

Private Attributes

 _collection
 

Detailed Description

Holds representation of the operations without having to use recursion.
Operations are added to the beginning of the list and their operands are
added to the end of the list, with the left added before the right

Definition at line 135 of file SequenceTypes.py.

Constructor & Destructor Documentation

def SequenceTypes._SequenceCollection.__init__ (   self,
  seqList 
)

Definition at line 140 of file SequenceTypes.py.

140  def __init__(self,*seqList):
141  self._collection = list()
142  for s in seqList:
143  _checkIfSequenceable(self,s)
144  s._appendToCollection(self._collection)
def _checkIfSequenceable(caller, v)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Function Documentation

def SequenceTypes._SequenceCollection.__add__ (   self,
  rhs 
)

Definition at line 149 of file SequenceTypes.py.

References SequenceTypes._checkIfSequenceable(), and SequenceTypes._SequenceCollection._collection.

Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().

149  def __add__(self,rhs):
150  _checkIfSequenceable(self,rhs)
151  rhs._appendToCollection(self._collection)
152  return self
def _checkIfSequenceable(caller, v)
def SequenceTypes._SequenceCollection.__mul__ (   self,
  rhs 
)

Definition at line 145 of file SequenceTypes.py.

References SequenceTypes._checkIfSequenceable(), and SequenceTypes._SequenceCollection._collection.

145  def __mul__(self,rhs):
146  _checkIfSequenceable(self,rhs)
147  rhs._appendToCollection(self._collection)
148  return self
def _checkIfSequenceable(caller, v)
def SequenceTypes._SequenceCollection.__str__ (   self)

Definition at line 153 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection, and str.

153  def __str__(self):
154  sep = ''
155  returnValue = ''
156  for m in self._collection:
157  if m is not None:
158  returnValue += sep+str(m)
159  sep = '+'
160  return returnValue
#define str(s)
def SequenceTypes._SequenceCollection._appendToCollection (   self,
  collection 
)
private

Definition at line 161 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection.

161  def _appendToCollection(self,collection):
162  collection.extend(self._collection)
def _appendToCollection(self, collection)
def SequenceTypes._SequenceCollection.dumpSequenceConfig (   self)

Definition at line 172 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection.

173  returnValue = self._collection[0].dumpSequenceConfig()
174  for m in self._collection[1:]:
175  returnValue += '&'+m.dumpSequenceConfig()
176  return returnValue
def SequenceTypes._SequenceCollection.dumpSequencePython (   self,
  options = PrintOptions() 
)

Definition at line 163 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection.

163  def dumpSequencePython(self, options=PrintOptions()):
164  returnValue = ''
165  separator = ''
166  for item in self._collection:
167  itemDump = item.dumpSequencePython(options)
168  if itemDump:
169  returnValue += (separator + itemDump)
170  separator = '+'
171  return returnValue
def dumpSequencePython(self, options=PrintOptions())
def SequenceTypes._SequenceCollection.index (   self,
  item 
)

Definition at line 183 of file SequenceTypes.py.

Referenced by BeautifulSoup.PageElement.insert().

183  def index(self,item):
184  return self._collection.index(item)
def SequenceTypes._SequenceCollection.insert (   self,
  index,
  item 
)

Definition at line 185 of file SequenceTypes.py.

185  def insert(self,index,item):
186  self._collection.insert(index,item)
187 
188 
189 
def insert(self, index, item)
def SequenceTypes._SequenceCollection.resolve (   self,
  processDict,
  keepIfCannotResolve = False 
)

Definition at line 180 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection.

180  def resolve(self, processDict,keepIfCannotResolve=False):
181  self._collection = [x.resolve(processDict,keepIfCannotResolve) for x in self._collection]
182  return self
def resolve(self, processDict, keepIfCannotResolve=False)
def SequenceTypes._SequenceCollection.visitNode (   self,
  visitor 
)

Definition at line 177 of file SequenceTypes.py.

References SequenceTypes._SequenceCollection._collection.

177  def visitNode(self,visitor):
178  for m in self._collection:
179  m.visitNode(visitor)

Member Data Documentation

SequenceTypes._SequenceCollection._collection
private