コード例 #1
0
 public LSG()
 {
     loopCounter = 0;
     loops       = new List <SimpleLoop>();
     root        = new SimpleLoop();
     root.setNestingLevel(0);
     root.setCounter(loopCounter++);
     addLoop(root);
 }
コード例 #2
0
 public LSG()
 {
     loopCounter = 0;
     loops = new List<SimpleLoop>();
     root = new SimpleLoop();
     root.setNestingLevel(0);
     root.setCounter(loopCounter++);
     addLoop(root);
 }
コード例 #3
0
        public void calculateNestingLevelRec(SimpleLoop loop, int depth)
        {
            loop.setDepthLevel(depth);
            foreach (SimpleLoop liter in loop.getChildren())
            {
                calculateNestingLevelRec(liter, depth + 1);

                loop.setNestingLevel(Math.Max(loop.getNestingLevel(),
                                              1 + liter.getNestingLevel()));
            }
        }
コード例 #4
0
        public void calculateNestingLevelRec(SimpleLoop loop, int depth)
        {
            loop.setDepthLevel(depth);
            foreach (SimpleLoop liter in loop.getChildren())
            {
                calculateNestingLevelRec(liter, depth + 1);

                loop.setNestingLevel(Math.Max(loop.getNestingLevel(),
                                              1 + liter.getNestingLevel()));
            }
        }