← Back to team overview

kicad-developers team mailing list archive

Visitor Design Pattern

 

Jean-Pierre

Today I released the visitor design pattern to the project.  

googling I found this, but there's more out there, and our's is cooler
than this one:

http://en.wikipedia.org/wiki/Visitor_pattern

Please look over BOARD::Visit(), MODULE::Visit() and
BOARD::FindPadOrModule(). See if there are any mistakes. See if it
makes sense to you.

The FindPadOrModule() still needs a tweak to pay attention to the
layer_mask for pads. I will do this tomorrow.

grep for FindPadOrModule() to see where it was called from.


Thanks,
Dick








Follow ups