Factory MapFactoryMap is a simple DesignPattern where a large switch statement or if/elseif chain is replaced by a lookup table which maps the switch variable to some object. For creation it's usually a function pointer. For Prototype pattern it's a cloneable object. I've seen this in lots of places, particularly in C++, but I haven't got round to writing it up yet (and neither has anyone else apparently!)
See also: ClassFactory
EditText of this page
(last edited April 1, 2005)
or FindPage with title or text search