C++ features by examples
Design patterns skeleton examples

Software design patterns More...

Collaboration diagram for Design patterns skeleton examples:

Modules

 Creational
 Creational patterns
 
 Structural
 Structural patterns
 
 Behavioral
 Behavioral patterns
 
 Architectural
 Architectural patterns
 
 Concurrency
 Concurrency patterns
 

Classes

struct  Interface
 is a common pure virtual interface More...
 

Functions

int main ()
 

Detailed Description

Software design patterns

https://refactoring.guru/design-patterns

C++ Programming: Code patterns design

Disclaimer:

Example code below for simplicity doesn't utilize synchronization, privatization and other administrative functions.

Don't forget to add locking, synchronization, encapsulation, privatization, protection manually where it is required when using examples below.

Function Documentation

◆ main()

int main ( void  )

Definition at line 802 of file patterns.cpp.

803{
804 oop_demo();
810}
void architectural_patterns_demo()
Definition: patterns.cpp:698
void behavioral_patterns_demo()
Definition: patterns.cpp:594
void concurrency_patterns_demo()
Definition: patterns.cpp:792
void creational_patterns_demo()
Definition: patterns.cpp:272
void oop_demo()
Definition: patterns.cpp:115
void structural_patterns_demo()
Definition: patterns.cpp:362
Here is the call graph for this function: