Skip to Content.
Sympa Menu

gang-of-4-patterns - Re: [gang-of-4-patterns] Visitor Pattern

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

Re: [gang-of-4-patterns] Visitor Pattern


Chronological Thread 
  • From: Lívio Cipriano <lcipriano AT iol.pt>
  • To: Roman Neuhauser <neuhauser AT sigpipe.cz>
  • Cc: gang-of-4-patterns AT cs.uiuc.edu
  • Subject: Re: [gang-of-4-patterns] Visitor Pattern
  • Date: Sat, 19 Aug 2006 11:30:35 +0100
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/gang-of-4-patterns>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hi Roman,

The original Visitor pattern only addresses the "application" of the Visitor
to one Node (in a tree structure). Of course that was only an example, cause
the basic utility of this pattern is to add operations to a set of related
Classes.

My problem is that I've a tree structure, I've Visitores and I need to
traversal the tree applying the Visitores, so I'm looking for an example how
to do it. Some idea?

Regards

Lívio Cipriano

----- Original Message -----
#
lcipriano AT iol.pt
/ 2006-08-19 10:48:13 +0100:
> I would like to find a pattern, maybe using the Visitor one, that can
> be used to traversal a tree.

What is your question?




Archive powered by MHonArc 2.6.16.

Top of Page