Skip to content

Commit

Permalink
Finish 5 CreationalPatterns:
Browse files Browse the repository at this point in the history
AbstractFactory, FactoryMethod, Builder, Prototype, Singleton

Signed-off-by: Junzhuo Du <junzhuod@xsense.ai>
  • Loading branch information
Junzhuo Du committed Feb 26, 2020
1 parent d61729c commit fc139c1
Show file tree
Hide file tree
Showing 50 changed files with 26 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 25 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ project(CppDesignPatterns)
set (CMAKE_CXX_STANDARD 11)

set(PATTERNS
abstract-factory
adapter
bridge
builder
chain-of-responsibility
command
composite
decorator
facade
factory-method
flyweight
interpreter
iterator
mediator
memento
observer
prototype
proxy
singleton
state
strategy
template-method
visitor
CreationalPatterns/abstract-factory
CreationalPatterns/builder
CreationalPatterns/factory-method
CreationalPatterns/prototype
CreationalPatterns/singleton

StructuralPatterns/adapter
StructuralPatterns/bridge
StructuralPatterns/proxy
StructuralPatterns/composite
StructuralPatterns/decorator
StructuralPatterns/facade
StructuralPatterns/flyweight

BehaviroalPatterns/chain-of-responsibility
BehaviroalPatterns/command
BehaviroalPatterns/interpreter
BehaviroalPatterns/iterator
BehaviroalPatterns/mediator
BehaviroalPatterns/memento
BehaviroalPatterns/observer
BehaviroalPatterns/state
BehaviroalPatterns/strategy
BehaviroalPatterns/template-method
BehaviroalPatterns/visitor
)

foreach(_dir IN ITEMS ${PATTERNS})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2016 Jakub Vojvoda
Copyright (c) 2020 Junzhuo Du

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ objects).
- [Template Method], steps of an algorithm
- [Visitor], operations that can be applied to objects without changing their classes

### Other Languages
In my repository you can find implementation of desgin patterns also in languages as

* [Design Patterns in C++]
* [Design Patterns in Java]
Expand All @@ -50,8 +48,6 @@ Design patterns in this repository are based on
* [Wikipedia]

[Design Patterns in C++]: https://github.com/JakubVojvoda/design-patterns-cpp
[Design Patterns in Java]: https://github.com/JakubVojvoda/design-patterns-java
[Design Patterns in Python]: https://github.com/JakubVojvoda/design-patterns-python

[Design Patterns by The "Gang of Four"]: https://en.wikipedia.org/wiki/Design_Patterns
[Head First: Design Patterns]: http://www.headfirstlabs.com/books/hfdp/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fc139c1

Please sign in to comment.