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); }
public AComposite GetComposite() { return(curve.GetComposite()); }
public AComposite GetComposite() { return(comp.GetComposite()); }