Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/a-cordier/design-pattern-composite-visitor

Composite Visitor design pattern combo
https://github.com/a-cordier/design-pattern-composite-visitor

Last synced: 14 days ago
JSON representation

Composite Visitor design pattern combo

Awesome Lists containing this project

README

        

### Composite & Interpreter pattern

#### Structural - Behavioral

Visitor:

Represent an operation to be
performed on the elements of an
object structure. Lets you define a
new operation without changing
the classes of the elements on
which it operates.

Composite:

Compose objects into tree structures to
represent part-whole hierarchies. Lets
clients treat individual objects and
compositions of objects uniformly.

Source code stems from the following UML diagram:

![alt text](design-pattern-composite-visitor.png "Design Pattern Composite with visitor ")