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
Mixins._SimpleParameterTypeBase Class Reference
Inheritance diagram for Mixins._SimpleParameterTypeBase:
Mixins._ParameterTypeBase Mixins.UsingBlock Types.bool Types.double Types.FileInPath Types.int32 Types.int64 Types.string Types.uint32 Types.uint64

Public Member Functions

def __eq__
 
def __init__
 
def __ne__
 
def configValue
 
def pythonValue
 
def setValue
 
def value
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__
 
def __repr__
 
def configTypeName
 
def dumpPython
 
def isFrozen
 
def isModified
 
def isTracked
 
def pythonTypeName
 
def resetModified
 
def setIsFrozen
 
def setIsTracked
 

Private Attributes

 _isModified
 
 _value
 

Detailed Description

base class for parameter classes which only hold a single value

Definition at line 50 of file Mixins.py.

Constructor & Destructor Documentation

def Mixins._SimpleParameterTypeBase.__init__ (   self,
  value 
)

Definition at line 52 of file Mixins.py.

52 
53  def __init__(self,value):
54  super(_SimpleParameterTypeBase,self).__init__()
55  self._value = value
56  if not self._isValid(value):
raise ValueError(str(value)+" is not a valid "+str(type(self)))

Member Function Documentation

def Mixins._SimpleParameterTypeBase.__eq__ (   self,
  other 
)

Definition at line 69 of file Mixins.py.

References Mixins._SimpleParameterTypeBase._value, and edm::TrieNode< T >._value.

Referenced by SequenceTypes._UnarySequenceOperator.__ne__().

69 
70  def __eq__(self,other):
71  if isinstance(other,_SimpleParameterTypeBase):
72  return self._value == other._value
return self._value == other
def Mixins._SimpleParameterTypeBase.__ne__ (   self,
  other 
)

Definition at line 73 of file Mixins.py.

References Mixins._SimpleParameterTypeBase._value, and edm::TrieNode< T >._value.

73 
74  def __ne__(self,other):
75  if isinstance(other,_SimpleParameterTypeBase):
76  return self._value != other._value
77  return self._value != other
78 
def Mixins._SimpleParameterTypeBase.configValue (   self,
  options = PrintOptions() 
)

Definition at line 65 of file Mixins.py.

References Mixins._SimpleParameterTypeBase._value, and edm::TrieNode< T >._value.

Referenced by Mixins._SimpleParameterTypeBase.pythonValue(), Types.string.pythonValue(), Types.InputTag.pythonValue(), Types.ESInputTag.pythonValue(), Types.InputTag.value(), and Types.ESInputTag.value().

65 
66  def configValue(self, options=PrintOptions()):
return str(self._value)
def Mixins._SimpleParameterTypeBase.pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 67 of file Mixins.py.

References Mixins._SimpleParameterTypeBase.configValue().

Referenced by Mixins._ParameterTypeBase.dumpPython().

67 
68  def pythonValue(self, options=PrintOptions()):
return self.configValue(options)
def Mixins._SimpleParameterTypeBase.setValue (   self,
  value 
)

Definition at line 59 of file Mixins.py.

References Types.int32._isValid(), Types.uint32._isValid(), Types.int64._isValid(), Types.uint64._isValid(), Mixins.UsingBlock._isValid(), Types.double._isValid(), Types.bool._isValid(), Types.string._isValid(), Types.EventID._isValid(), Types.LuminosityBlockID._isValid(), Types.LuminosityBlockRange._isValid(), Types.EventRange._isValid(), Types.InputTag._isValid(), Mixins._ValidatingListBase._isValid(), Types.ESInputTag._isValid(), Types.FileInPath._isValid(), Types.SecSource._isValid(), Types.PSet._isValid(), Mixins._SimpleParameterTypeBase._value, and edm::TrieNode< T >._value.

59 
60  def setValue(self,value):
61  if not self._isValid(value):
62  raise ValueError(str(value)+" is not a valid "+str(type(self)))
63  if value!=self._value:
64  self._isModified=True
self._value=value
def Mixins._SimpleParameterTypeBase.value (   self)

Definition at line 57 of file Mixins.py.

References Mixins._SimpleParameterTypeBase._value, and edm::TrieNode< T >._value.

Referenced by Types.bool._isValid(), Types.string.configValue(), Types.FileInPath.configValue(), Mixins.UsingBlock.dumpPython(), Types.int32.insertInto(), Types.uint32.insertInto(), Types.int64.insertInto(), Types.uint64.insertInto(), Mixins.UsingBlock.insertInto(), Types.double.insertInto(), Types.bool.insertInto(), Types.string.insertInto(), Types.FileInPath.insertInto(), Types.vint32.insertInto(), Types.vuint32.insertInto(), Types.vint64.insertInto(), Types.vuint64.insertInto(), Types.vdouble.insertInto(), Types.vbool.insertInto(), and Types.vstring.insertInto().

57 
58  def value(self):
return self._value

Member Data Documentation

Mixins._SimpleParameterTypeBase._isModified
private

Definition at line 63 of file Mixins.py.

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._Parameterizable.__setattr__(), Mixins._TypedParameterizable.copy(), and Mixins._Parameterizable.isModified().

Mixins._SimpleParameterTypeBase._value
private

Definition at line 54 of file Mixins.py.

Referenced by Mixins._SimpleParameterTypeBase.__eq__(), Mixins._SimpleParameterTypeBase.__ne__(), Mixins._SimpleParameterTypeBase.configValue(), Mixins._SimpleParameterTypeBase.setValue(), and Mixins._SimpleParameterTypeBase.value().