def eval(self, operator, simulator=None):
def getVal(v):<EOL><INDENT>while not isinstance(v, Value):<EOL><INDENT>v = v._val<EOL><DEDENT>return v<EOL><DEDENT>operands = list(map(getVal, operator.operands))<EOL>if isEventDependentOp(operator.operator):<EOL><INDENT>operands.append(simulator.now)<EOL><DEDENT>elif operator.operator == AllOps.IntToBits:<EOL><INDENT>operands.append(operator.result._dtype)<EOL><DEDENT>return self._evalFn(*operands)<EOL>
Load all operands and process them by self._evalFn