コード例 #1
0
ファイル: QueryIntervalOp.cs プロジェクト: dox0/DotNet471RS3
        void Match(int valIndex, double point, QueryBranchResultSet results)
        {
            IntervalTreeTraverser traverser = new IntervalTreeTraverser(point, this.intervalTree.Root);

            while (traverser.MoveNext())
            {
                IntervalCollection matches = traverser.Slot;
                for (int i = 0, count = matches.Count; i < count; ++i)
                {
                    QueryBranch branch = matches[i].Branch;
                    if (null != branch)
                    {
                        results.Add(branch, valIndex);
                    }
                }
            }
        }
 private void Match(int valIndex, double point, QueryBranchResultSet results)
 {
     IntervalTreeTraverser traverser = new IntervalTreeTraverser(point, this.intervalTree.Root);
     while (traverser.MoveNext())
     {
         IntervalCollection slot = traverser.Slot;
         int num = 0;
         int count = slot.Count;
         while (num < count)
         {
             QueryBranch branch = slot[num].Branch;
             if (branch != null)
             {
                 results.Add(branch, valIndex);
             }
             num++;
         }
     }
 }
コード例 #3
0
        private void Match(int valIndex, double point, QueryBranchResultSet results)
        {
            IntervalTreeTraverser traverser = new IntervalTreeTraverser(point, this.intervalTree.Root);

            while (traverser.MoveNext())
            {
                IntervalCollection slot = traverser.Slot;
                int num   = 0;
                int count = slot.Count;
                while (num < count)
                {
                    QueryBranch branch = slot[num].Branch;
                    if (branch != null)
                    {
                        results.Add(branch, valIndex);
                    }
                    num++;
                }
            }
        }
コード例 #4
0
 void Match(int valIndex, double point, QueryBranchResultSet results)
 {
     IntervalTreeTraverser traverser = new IntervalTreeTraverser(point, this.intervalTree.Root);
     while (traverser.MoveNext())
     {
         IntervalCollection matches = traverser.Slot;
         for (int i = 0, count = matches.Count; i < count; ++i)
         {
             QueryBranch branch = matches[i].Branch;
             if (null != branch)
             {
                 results.Add(branch, valIndex);
             }
         }
     }
 }