public override void Accept(IVisitor visitor) { if (visitor != null) { visitor.Visit(this); } }
public void Accept(IVisitor visitor) { foreach (var employee in this.employees) { employee.Accept(visitor); } }
public override void OnVisitChildNodes(IVisitor visitor) { if (Condition != null) Condition.Visit(visitor); if (Code != null) Code.Visit(visitor); }
private void RunInWidth(WorkFlowContext context, IVisitor visitor) { Queue<string> fila = new Queue<string>(); List<string> mark = new List<string>(); fila.Enqueue(context.SourceState); mark.Add(context.SourceState); while (fila.Count != 0) { string statusfila = fila.Dequeue(); context.SourceState = statusfila; foreach (var item in this.GetActivities(context).OrderBy(x => x.Operation)) { context.Operation = item.Operation; string newstatus = this.GetNextStatus(context); visitor.Visit(statusfila, new Activity { Operation = item.Operation, Description = item.Description }, newstatus); if (!mark.Contains(newstatus)) { fila.Enqueue(newstatus); mark.Add(newstatus); } } } }
void IAlgorithms.Accept(IVisitor visitor) { foreach (IAlgorithm a in this._lstAlgorithm) { visitor.Visit(a); } }
public void Accept(IVisitor visitor) { foreach (var account in this.accounts) { account.Accept(visitor); } }
public void Visit(IVisitor visitor) { foreach (var employee in this.employees) { visitor.Visit(employee); } }
public override void AcceptVisit(IVisitor visitor) { visitor.StartVisit<ISimpleFixture>(this); MaterialFactory.AcceptVisit(visitor); ShapeFactory.AcceptVisit(visitor); visitor.EndVisit<ISimpleFixture>(this); }
private bool Accept(IVisitor visitor, Stack<int> inStack, Stack<int> resumeStack) { if (visitor.VisitEnter(this)) { int firstChild = 0; if (resumeStack.Count > 0) { firstChild = resumeStack.Pop(); if (resumeStack.Count == 0) { // If this is the node we found last time then start looking at the next one firstChild++; } } for (int i = firstChild; i < Children.Count(); i++) { Composite c = Children.ElementAt(i); if (!c.Accept(visitor, inStack, resumeStack)) { inStack.Push(i); break; } } } return visitor.VisitExit(this); }
public override void OnVisitChildNodes(IVisitor visitor) { foreach (var n in Content) { n.Visit(visitor); } }
public void Accept(IVisitor visitor) { foreach (var asset in _assets) { asset.Accept(visitor); } }
public void AcceptVisit(IVisitor visitor) { visitor.StartVisit<ISimulator>(this); ActorsFactory.AcceptVisit(visitor); ConstraintsFactory.AcceptVisit(visitor); visitor.EndVisit<ISimulator>(this); }
public void Accept(IVisitor visitor) { foreach (IEntity entity in Entities) { entity.Accept(visitor); } }
public void Accept(IVisitor visitor) { AdditionVisitor addVisitor = visitor as AdditionVisitor; if (addVisitor != null) addVisitor.args[Strings.result] = addVisitor.add(); }
public override void OnVisitChildNodes(IVisitor visitor) { foreach (var e in Expressions) { e.Visit(visitor); } }
private void RunInDepth(WorkFlowContext context, IVisitor visitor) { if (string.IsNullOrEmpty(context.SourceState)) { return; } else { foreach (var item in this.GetActivities(context).OrderBy(x => x.Operation)) { context.Operation = item.Operation; string newstatus = this.GetNextStatus(context); string laststate = context.SourceState; string transition = string.Format("{0},{1},{2}", context.SourceState, item.Description, newstatus); if (NotPresent(transition)) { visitor.Visit(context.SourceState, new Activity { Operation = item.Operation, Description = item.Description }, newstatus); context.SourceState = newstatus; RunInDepth(context, visitor); context.SourceState = laststate; } } } }
public GarbageCollector(List<IMemoryProfile> memoryProfiles, IVisitor visitor) { foreach (var item in memoryProfiles) { item.Accept(visitor); } }
/** * Create a new Logger, which has as initial trace a sequence of * visiting events where the visitor <code>v</code> visits each of * the <code>nodes</code> */ public Logger(IVisitor v, IVisitable[] nodes) { for (int i = 0; i < nodes.Length; i++) { log( new Event(v, nodes[i]) ); } }
public void Accept(IVisitor visitor) { visitor.VisitScene(this); foreach (IVisitable childScene in this.ChildGraphs) childScene.Accept(visitor); }
public override void OnVisitChildNodes(IVisitor visitor) { foreach (var kp in Values) { kp.Value.Visit(visitor); } }
public RangeTripsView() { InitializeComponent(); _gridUI = new RangeTripGridVisibilityManager(_panel1, new ToolStripItemsVisibilityManager(_toolStrip1, _toolStripItemsForGrid)); _newRangeTripUI = new RangeTripControlVisibilityManager(_panel1, new ToolStripItemsVisibilityManager(_toolStrip1, _toolStripItemsForAddNewUI)); _showDatabaseLocation = new ShowDatabaseInStatusBarVisitor(_databaseLocationStatusLabel.Name); }
public void Accept(IVisitor visitor) { foreach (Employee e in _employees) { e.Accept(visitor); } Console.WriteLine(); }
public override void Accept(IVisitor<BaseObject> visitor) { var ourSectionVisitor = visitor as IVisitor<StringsSection>; if (ourSectionVisitor != null) { ourSectionVisitor.Visit(this); } }
public override void Accept(IVisitor<BaseObject> visitor) { var ourObjectVisitor = visitor as IVisitor<DestinationFile>; if (ourObjectVisitor != null) { ourObjectVisitor.Visit(this); } }
public override void Accept(IVisitor<BaseObject> visitor) { var ourObjectVisitor = visitor as IVisitor<Shortcut>; if (ourObjectVisitor != null) { ourObjectVisitor.Visit(this); } }
public void Accept(IVisitor visitor) { foreach (var part in this._parts) { part.Accept(visitor); } visitor.Visit(this); }
public override void OnVisitChildNodes(IVisitor visitor) { foreach (var e in Values) { if (e!=null) e.Visit(visitor); } }
public void Accept(IVisitor visitor) { visitor.Visit(this); foreach (var floor in Floors) { floor.Accept(visitor); } }
public void Accept(IVisitor visitor) { visitor.VisitGroup(this); foreach (IUnit unit in SubUnits) { unit.Accept(visitor); } }
public override void Accept(IVisitor<BaseObject> visitor) { var ourSectionVisitor = visitor as IVisitor<DestinationRegValuesSection>; if (ourSectionVisitor != null) { ourSectionVisitor.Visit(this); } }
public void Accept(IVisitor pVisitor) { pVisitor.Visit(this); }
public virtual void Accept(IVisitor visitor) { visitor.Visit((dynamic)this); }
public override void VisitChildren(IVisitor visitor) { Body.Visit(visitor); EnforcedReturnType.Visit(visitor); }
public abstract void AcceptVisit(IVisitor visitor);
public override void Accept(IVisitor visitor) { Values = VisitAndReplace(Values, visitor); }
public void Init() { this._visitorCollection = VisitorCollection.CreateInstance(); this._visitor = new ObjectTypeVisitor(this._visitorCollection); this._strategy = new CamelCaseNamingStrategy(); }
public void Accept(IVisitor visitor) { visitor.Visit(this); //double dispatching }
public void Accept(IVisitor v) { v.Visit(this); }
public void Accept(IVisitor visitor) { visitor.VisitEmployees(this); }
public void Accept(IVisitor person) { person.TreatmentEmployee(this); }
public override void AcceptVisitor(IVisitor Visitor) { Visitor.Visit(this); }
public override void Accept(IVisitor visitor) { visitor.VisitDynamicText(this); }
public void Accept(IVisitor visitor) { visitor.VisitEnter(this); Arg.Accept(visitor); visitor.VisitLeave(this); }
public override Object Accept(IVisitor v, Object o) { return(v.Visit(this, o)); }
public override void Visit(IVisitor visitor) => visitor.VisitRoot(this);
public abstract override void accept(IVisitor v);
public abstract void Accept(IVisitor visitor, NodeBase child);
public override void Accept(IVisitor visitor, Function function, Module mod) { visitor.Visit(this, function, mod); }
/// <summary> /// Accepts the specified visitor. /// </summary> /// <param name="visitor">The visitor.</param> public void Accept(IVisitor visitor) { visitor.OnProduction(this); }
public void Accept(IVisitor visitor) { visitor.VisitCustomerCommand(this); }
public override string Accept(IVisitor visitor) { return(visitor.Visit(this)); }
public void Accept(IVisitor visitor) { visitor.VisitPurchaseOrderCommand(this); }
public void Init() { this._visitorCollection = new VisitorCollection(); this._visitor = new UInt16TypeVisitor(this._visitorCollection); this._strategy = new CamelCaseNamingStrategy(); }
public void Accept(IVisitor visitor) { visitor.VisitSalesOrderCommand(this); }
public override void accept(IVisitor v) { v.imprimeArchivo(this); }
protected override T VisitNode <T>(IVisitor <T> visitor) { return(visitor.Visit(this)); }
public void Accept(IVisitor visitor) { visitor.Visit(this); }
public override void Visit(IVisitor visitor) { visitor.Accept(this); }
public override void Accept(IVisitor visitor) { visitor.VisitBook(this); }
public void AcceptVisit(IVisitor visitor) { visitor.Visit <IConvexHullOfPointsShape>(this); }