Implementation of the Composite_Exercise() function as used in the Composite Pattern. More...
Go to the source code of this file.
Namespaces | |
| namespace | DesignPatternExamples_python |
| The DesignPatternExamples_python package, containing 20 examples of design patterns, each in their own namespace. | |
| namespace | DesignPatternExamples_python.composite |
| namespace | DesignPatternExamples_python.composite.composite_exercise |
Functions | |
| str | Composite_Exercise_FormatEntry (FileDirEntry entry, int depth) |
| Format the specified entry for display. | |
| None | Composite_Exercise_ShowEntry (FileDirEntry entry) |
| Recursively display the contents of the hierarchical list of objects starting with the given object. | |
| def | Composite_Exercise () |
| Example of using the Composite Pattern. | |
Implementation of the Composite_Exercise() function as used in the Composite Pattern.
Definition in file composite_exercise.py.