CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def __init__
 
def __invert__
 
def __or__
 
def makeProcessModifier
 
def toModify
 
def toReplaceWith
 

Private Attributes

 _lhs
 
 _rhs
 

Detailed Description

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

Definition at line 1674 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 1676 of file Config.py.

1677  def __init__(self, lhs, rhs=None):
1678  self._lhs = lhs
1679  if rhs is not None:
self._rhs = rhs

Member Function Documentation

def Config._BoolModifierBase.__and__ (   self,
  other 
)

Definition at line 1695 of file Config.py.

1696  def __and__(self, other):
return _AndModifier(self,other)
def Config._BoolModifierBase.__invert__ (   self)

Definition at line 1697 of file Config.py.

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

Definition at line 1699 of file Config.py.

Referenced by LumiList.LumiList.__add__().

1700  def __or__(self, other):
1701  return _OrModifier(self,other)
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 1690 of file Config.py.

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

Definition at line 1680 of file Config.py.

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

1681  def toModify(self,obj, func=None,**kw):
1682  Modifier._toModifyCheck(obj,func,**kw)
1683  if not self._isChosen():
1684  return
Modifier._toModify(obj,func,**kw)
def Config._BoolModifierBase.toReplaceWith (   self,
  toObj,
  fromObj 
)

Definition at line 1685 of file Config.py.

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

1686  def toReplaceWith(self,toObj,fromObj):
1687  Modifier._toReplaceWithCheck(toObj,fromObj)
1688  if not self._isChosen():
1689  return
Modifier._toReplaceWith(toObj,fromObj)

Member Data Documentation

Config._BoolModifierBase._lhs
private

Definition at line 1677 of file Config.py.

Config._BoolModifierBase._rhs
private

Definition at line 1679 of file Config.py.