Lines Matching refs:Expression

10 class Expression:
29 def Substitute(self, name: str, expression: 'Expression') -> 'Expression':
35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator':
38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator':
41 def __xor__(self, other: Union[int, float, 'Expression']) -> 'Operator':
44 def __and__(self, other: Union[int, float, 'Expression']) -> 'Operator':
47 def __rand__(self, other: Union[int, float, 'Expression']) -> 'Operator':
50 def __lt__(self, other: Union[int, float, 'Expression']) -> 'Operator':
53 def __gt__(self, other: Union[int, float, 'Expression']) -> 'Operator':
56 def __add__(self, other: Union[int, float, 'Expression']) -> 'Operator':
59 def __radd__(self, other: Union[int, float, 'Expression']) -> 'Operator':
62 def __sub__(self, other: Union[int, float, 'Expression']) -> 'Operator':
65 def __rsub__(self, other: Union[int, float, 'Expression']) -> 'Operator':
68 def __mul__(self, other: Union[int, float, 'Expression']) -> 'Operator':
71 def __rmul__(self, other: Union[int, float, 'Expression']) -> 'Operator':
74 def __truediv__(self, other: Union[int, float, 'Expression']) -> 'Operator':
77 def __rtruediv__(self, other: Union[int, float, 'Expression']) -> 'Operator':
80 def __mod__(self, other: Union[int, float, 'Expression']) -> 'Operator':
84 def _Constify(val: Union[bool, int, float, Expression]) -> Expression:
85 """Used to ensure that the nodes in the expression tree are all Expression."""
112 class Operator(Expression):
115 def __init__(self, operator: str, lhs: Union[int, float, Expression],
116 rhs: Union[int, float, Expression]):
122 other: Expression,
137 other (Expression): is a lhs or rhs operator
161 def Simplify(self) -> Expression:
192 def Equals(self, other: Expression) -> bool:
198 def Substitute(self, name: str, expression: Expression) -> Expression:
208 class Select(Expression):
211 def __init__(self, true_val: Union[int, float, Expression],
212 cond: Union[int, float, Expression],
213 false_val: Union[int, float, Expression]):
228 def Simplify(self) -> Expression:
240 def Equals(self, other: Expression) -> bool:
246 def Substitute(self, name: str, expression: Expression) -> Expression:
255 class Function(Expression):
260 lhs: Union[int, float, Expression],
261 rhs: Optional[Union[int, float, Expression]] = None):
276 def Simplify(self) -> Expression:
288 def Equals(self, other: Expression) -> bool:
296 def Substitute(self, name: str, expression: Expression) -> Expression:
311 class Event(Expression):
325 def Simplify(self) -> Expression:
328 def Equals(self, other: Expression) -> bool:
331 def Substitute(self, name: str, expression: Expression) -> Expression:
335 class Constant(Expression):
352 def Simplify(self) -> Expression:
355 def Equals(self, other: Expression) -> bool:
358 def Substitute(self, name: str, expression: Expression) -> Expression:
362 class Literal(Expression):
374 def Simplify(self) -> Expression:
377 def Equals(self, other: Expression) -> bool:
380 def Substitute(self, name: str, expression: Expression) -> Expression:
384 def min(lhs: Union[int, float, Expression], rhs: Union[int, float,
385 Expression]) -> Function:
391 def max(lhs: Union[int, float, Expression], rhs: Union[int, float,
392 Expression]) -> Function:
398 def d_ratio(lhs: Union[int, float, Expression],
399 rhs: Union[int, float, Expression]) -> Function:
424 expr: Expression
431 expr: Expression,
531 def ParsePerfJson(orig: str) -> Expression:
544 Expression: The parsed string.
573 def RewriteMetricsInTermsOfOthers(metrics: List[Tuple[str, str, Expression]]
574 )-> Dict[Tuple[str, str], Expression]:
582 updates: Dict[Tuple[str, str], Expression] = dict()