private static void PopulateOperatorDefines(Operator root) { operatorDefines.Add(root.BindedCoreOperator.Name); foreach (Operator op in root.GetInputs()) PopulateOperatorDefines(op); }
private static ushort PopulateOldIdToNewIdAndOperatorsSortedOnNewId(Operator root, ushort id) { if (!oldIdToNewId.ContainsKey(root.BindedCoreOperator.Id)) { oldIdToNewId.Add(root.BindedCoreOperator.Id, id); operatorsSortedOnNewId.Add(root); } foreach (Operator op in root.GetInputs()) id = PopulateOldIdToNewIdAndOperatorsSortedOnNewId(op, ++id); return id; }
private ushort PopulateIdNormalizerHash(Operator root, ushort id) { if (!oldIdToNewId.ContainsKey(root.BindedOperator.Id)) { oldIdToNewId.Add(root.BindedOperator.Id, id); operatorsSortedOnNewId.Add(root); } foreach (Operator op in root.GetInputs()) { id = PopulateIdNormalizerHash(op, ++id); } return id; }
private void PopulateOperatorDefines(Operator root) { String name = root.BindedOperator.Name + root.BindedOperator.Type.ToString(); name = name.ToUpper().Replace(" ", ""); operatorDefines.Add("#define DB_" + name + "FILTER 1"); foreach (Operator op in root.GetInputs()) PopulateOperatorDefines(op); }