CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config._BoolModifierBase Class Reference
Inheritance diagram for Config._BoolModifierBase:
Config._AndModifier Config._InvertModifier Config._OrModifier

Public Member Functions

def __and__ (self, other)
 
def __init__ (self, lhs, rhs=None)
 
def __invert__ (self)
 
def __or__ (self, other)
 
def makeProcessModifier (self, func)
 
def toModify (self, obj, func=None, kw)
 
def toReplaceWith (self, toObj, fromObj)
 

Private Attributes

 _lhs
 
 _rhs
 

Detailed Description

A helper base class for _AndModifier, _InvertModifier, and _OrModifier to contain the common code

Definition at line 1282 of file Config.py.

Constructor & Destructor Documentation

def Config._BoolModifierBase.__init__ (   self,
  lhs,
  rhs = None 
)

Definition at line 1284 of file Config.py.

1284  def __init__(self, lhs, rhs=None):
1285  self._lhs = lhs
1286  if rhs is not None:
1287  self._rhs = rhs
def __init__(self, lhs, rhs=None)
Definition: Config.py:1284

Member Function Documentation

def Config._BoolModifierBase.__and__ (   self,
  other 
)

Definition at line 1303 of file Config.py.

1303  def __and__(self, other):
1304  return _AndModifier(self,other)
def __and__(self, other)
Definition: Config.py:1303
def Config._BoolModifierBase.__invert__ (   self)

Definition at line 1305 of file Config.py.

1305  def __invert__(self):
1306  return _InvertModifier(self)
def Config._BoolModifierBase.__or__ (   self,
  other 
)

Definition at line 1307 of file Config.py.

Referenced by LumiList.LumiList.__add__().

1307  def __or__(self, other):
1308  return _OrModifier(self,other)
1309 
def __or__(self, other)
Definition: Config.py:1307
def Config._BoolModifierBase.makeProcessModifier (   self,
  func 
)
This is used to create a ProcessModifer that can perform actions on the process as a whole.
    This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process.
    In order to work, the value returned from this function must be assigned to a uniquely named variable.

Definition at line 1298 of file Config.py.

1298  def makeProcessModifier(self,func):
1299  """This is used to create a ProcessModifer that can perform actions on the process as a whole.
1300  This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process.
1301  In order to work, the value returned from this function must be assigned to a uniquely named variable."""
1302  return ProcessModifier(self,func)
def makeProcessModifier(self, func)
Definition: Config.py:1298
def Config._BoolModifierBase.toModify (   self,
  obj,
  func = None,
  kw 
)

Definition at line 1288 of file Config.py.

References Config._AndModifier.isChosen(), Config._InvertModifier.isChosen(), Config._OrModifier.isChosen(), Config.Modifier.isChosen(), and Config.ModifierChain.isChosen().

1288  def toModify(self,obj, func=None,**kw):
1289  Modifier._toModifyCheck(obj,func,**kw)
1290  if not self.isChosen():
1291  return
1292  Modifier._toModify(obj,func,**kw)
def toModify(self, obj, func=None, kw)
Definition: Config.py:1288
def Config._BoolModifierBase.toReplaceWith (   self,
  toObj,
  fromObj 
)

Definition at line 1293 of file Config.py.

References Config._AndModifier.isChosen(), Config._InvertModifier.isChosen(), Config._OrModifier.isChosen(), Config.Modifier.isChosen(), and Config.ModifierChain.isChosen().

1293  def toReplaceWith(self,toObj,fromObj):
1294  Modifier._toReplaceWithCheck(toObj,fromObj)
1295  if not self.isChosen():
1296  return
1297  Modifier._toReplaceWith(toObj,fromObj)
def toReplaceWith(self, toObj, fromObj)
Definition: Config.py:1293

Member Data Documentation

Config._BoolModifierBase._lhs
private

Definition at line 1285 of file Config.py.

Config._BoolModifierBase._rhs
private

Definition at line 1287 of file Config.py.