Esempio n. 1
0
        public CompositeIterator(CompanyComponent component)
        {
            inner = component;

            stack = new Stack <AbstractIterator>();
            stack.Push(inner.CreateIterator());
        }
Esempio n. 2
0
 public override void Remove(CompanyComponent component)
 {
     _employees.Remove(component);
 }
Esempio n. 3
0
 public override void Add(CompanyComponent component)
 {
     _employees.Add(component);
 }
Esempio n. 4
0
 public virtual void Remove(CompanyComponent component)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 5
0
 public EmployeeVisitor(CompanyComponent component)
 {
     component.Accept(this);
 }
Esempio n. 6
0
 public CompositeVisitor(CompanyComponent component)
 {
     component.Accept(this);
 }
Esempio n. 7
0
 public InternalReturnAllIterator(CompanyComponent component)
 {
     inner   = component;
     current = 0;
 }