Chap.9: MISSING PATTERNSReference [4] lists several structural patterns which are simple inheritance trees applied to some particular situations. Since there is no other structure involved (collections or pointers), these patterns are not good candidates for this library. When working with these patterns, the main work is in setting up application-specific functions, and this work must be done by the user whether or not there is a library class. For this reason, the following patterns are not included in this library: Adapter, Bridge. Another reason for not including some other patterns is that they can be implemented easily with patterns that are already available. For example, from the structural point of view, Decorator is just Composite except for a few additional subclasses:
When you need a Decorator, simply use Composite from the library, and derive classes D and E from C. Our plan is to gradually expand this library depending on user needs and requirements. Probably, we will introduce the following classes in the near future:
|