List of all members.
Detailed Description
Definition at line 489 of file Mixins.py.
Constructor & Destructor Documentation
def Mixins::_ValidatingParameterListBase::__init__ |
( |
|
self, |
|
|
|
arg, |
|
|
|
args |
|
) |
| |
Reimplemented from Mixins::_ValidatingListBase.
Reimplemented in SequenceTypes::Schedule, Types::vint32, Types::vuint32, Types::vint64, Types::vuint64, Types::vdouble, Types::vbool, Types::vstring, Types::VLuminosityBlockID, Types::VInputTag, Types::VESInputTag, Types::VEventID, Types::VLuminosityBlockRange, Types::VEventRange, and Types::VPSet.
Definition at line 490 of file Mixins.py.
00490 :
00491 _ParameterTypeBase.__init__(self)
00492 if len (arg) == 1 and not isinstance(arg[0],str):
00493 try:
00494 arg = iter(arg[0])
00495 except TypeError:
00496 pass
00497 super(_ValidatingParameterListBase,self).__init__(*arg,**args)
Member Function Documentation
def Mixins::_ValidatingParameterListBase::__repr__ |
( |
|
self | ) |
|
def Mixins::_ValidatingParameterListBase::_itemsFromStrings |
( |
|
strings, |
|
|
|
converter |
|
) |
| [private] |
Definition at line 561 of file Mixins.py.
00562 :
00563 return (converter(x).value() for x in strings)
def Mixins::_ValidatingParameterListBase::configValue |
( |
|
self, |
|
|
|
options = PrintOptions() |
|
) |
| |
Definition at line 504 of file Mixins.py.
00505 :
00506 config = '{\n'
00507 first = True
00508 for value in iter(self):
00509 options.indent()
00510 config += options.indentation()
00511 if not first:
00512 config+=', '
00513 config+= self.configValueForItem(value, options)+'\n'
00514 first = False
00515 options.unindent()
00516 config += options.indentation()+'}\n'
return config
def Mixins::_ValidatingParameterListBase::configValueForItem |
( |
|
self, |
|
|
|
item, |
|
|
|
options |
|
) |
| |
def Mixins::_ValidatingParameterListBase::dumpPython |
( |
|
self, |
|
|
|
options = PrintOptions() |
|
) |
| |
Reimplemented from Mixins::_ParameterTypeBase.
Definition at line 523 of file Mixins.py.
00524 :
00525 result = self.pythonTypeName()+"("
00526 n = len(self)
00527 if n<255:
00528 indented = False
00529 for i, v in enumerate(self):
00530 if i == 0:
00531 if hasattr(self, "_nPerLine"):
00532 nPerLine = self._nPerLine
00533 else:
00534 nPerLine = 5
00535 else:
00536 if not indented:
00537 indented = True
00538 options.indent()
00539
00540 result += ', '
00541 if i % nPerLine == 0:
00542 result += '\n'+options.indentation()
00543 result += self.pythonValueForItem(v,options)
00544 if indented:
00545 options.unindent()
00546
00547 else:
00548 result = '('
00549 start = 0
00550 l=list()
00551 while(start < len(self)):
00552 v=self.pythonTypeName()+'('
00553 v+=', '.join((self.pythonValueForItem(v,options) for v in self[start:start+255]))
00554 v+=')'
00555 l.append(v)
00556 start+=255
00557 result+='+'.join(l)
00558 pass
00559 result += ')'
return result
def Mixins::_ValidatingParameterListBase::pythonValueForItem |
( |
|
self, |
|
|
|
item, |
|
|
|
options |
|
) |
| |
def Mixins::_ValidatingParameterListBase::setValue |
( |
|
self, |
|
|
|
v |
|
) |
| |
Definition at line 500 of file Mixins.py.
00501 :
00502 self[:] = []
00503 self.extend(v)
self._isModified=True
def Mixins::_ValidatingParameterListBase::value |
( |
|
self | ) |
|
Definition at line 498 of file Mixins.py.
00499 :
return list(self)
Member Data Documentation