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
Config._AndModifier Class Reference
Inheritance diagram for Config._AndModifier:

Public Member Functions

def __and__
 
def __init__
 
def isChosen
 
def makeProcessModifier
 
def toModify
 

Private Attributes

 __lhs
 
 __rhs
 

Detailed Description

A modifier which only applies if multiple Modifiers are chosen

Definition at line 1126 of file Config.py.

Constructor & Destructor Documentation

def Config._AndModifier.__init__ (   self,
  lhs,
  rhs 
)

Definition at line 1128 of file Config.py.

1129  def __init__(self, lhs, rhs):
1130  self.__lhs = lhs
self.__rhs = rhs

Member Function Documentation

def Config._AndModifier.__and__ (   self,
  other 
)

Definition at line 1142 of file Config.py.

1143  def __and__(self, other):
1144  return _AndModifier(self,other)
1145 
1146 
def Config._AndModifier.isChosen (   self)

Definition at line 1131 of file Config.py.

Referenced by Config._AndModifier.toModify(), Config.Modifier.toModify(), and Config.Modifier.toReplaceWith().

1132  def isChosen(self):
return self.__lhs.isChosen() and self.__rhs.isChosen()
def Config._AndModifier.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 1137 of file Config.py.

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

Definition at line 1133 of file Config.py.

References Config._AndModifier.isChosen().

1134  def toModify(self,obj, func=None,**kw):
1135  if not self.isChosen():
1136  return
self.__lhs.toModify(obj,func, **kw)

Member Data Documentation

Config._AndModifier.__lhs
private

Definition at line 1129 of file Config.py.

Config._AndModifier.__rhs
private

Definition at line 1130 of file Config.py.