示例#1
0
        private static void PopulateOperatorDefines(Operator root)
        {
            operatorDefines.Add(root.BindedCoreOperator.Name);

            foreach (Operator op in root.GetInputs())
                PopulateOperatorDefines(op);
        }
示例#2
0
        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;
        }
示例#3
0
        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;
        }
示例#4
0
        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);
        }