Example #1
0
        public int Iterate(Func <ICurve, bool> funс)
        {
            int      k    = 0;
            Iterator iter = new Iterator(this);

            iter.Reset();
            while (iter.MoveNext())
            {
                ICurve c = iter.Current as ICurve;
                if (c.GetComposite() != null)
                {
                    k += c.GetComposite().Iterate(funс);
                }
                else
                {
                    funс(c);
                    k++;
                }
            }
            return(k);
        }
Example #2
0
 public AComposite GetComposite()
 {
     return(curve.GetComposite());
 }
Example #3
0
 public AComposite GetComposite()
 {
     return(comp.GetComposite());
 }