-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesignPatterns.cpp
More file actions
68 lines (62 loc) · 1.56 KB
/
Copy pathDesignPatterns.cpp
File metadata and controls
68 lines (62 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "Behavioral/ChainOfResponsibility.hpp"
#include "Behavioral/Command.hpp"
#include "Behavioral/Interpreter.hpp"
#include "Behavioral/Iterator.hpp"
#include "Behavioral/Mediator.hpp"
#include "Behavioral/Memento.hpp"
#include "Behavioral/NullObject.hpp"
#include "Behavioral/Observer.hpp"
#include "Behavioral/State.hpp"
#include "Behavioral/Strategy.hpp"
#include "Behavioral/TemplateMethod.hpp"
#include "Behavioral/Visitor.hpp"
#include "Creational/AbstractFactory.hpp"
#include "Creational/Builder.hpp"
#include "Creational/FactoryMethod.hpp"
#include "Creational/ObjectPool.hpp"
#include "Creational/Prototype.hpp"
#include "Creational/Singleton.hpp"
#include "Structural/Adapter.hpp"
#include "Structural/Bridge.hpp"
#include "Structural/Composite.hpp"
#include "Structural/Decorator.hpp"
#include "Structural/Facade.hpp"
#include "Structural/Flyweight.hpp"
#include "Structural/Proxy.hpp"
int main()
{
PrintLargeHeader("CREATIONAL PATTERNS");
{
AbstractFactory::Main();
Builder::Main();
FactoryMethod::Main();
ObjectPool::Main();
Prototype::Main();
Singleton::Main();
}
PrintLargeHeader("STRUCTURAL PATTERNS");
{
Adapter::Main();
Bridge::Main();
Composite::Main();
Decorator::Main();
Facade::Main();
Flyweight::Main();
Proxy::Main();
}
PrintLargeHeader("BEHAVIORAL PATTERNS");
{
ChainOfResponsibility::Main();
Command::Main();
Interpreter::Main();
Iterator::Main();
Mediator::Main();
Memento::Main();
NullObject::Main();
Observer::Main();
State::Main();
Strategy::Main();
TemplateMethod::Main();
Visitor::Main();
}
}