Design patterns – Prototype (creational) – library MetaTrader 5

Design patterns - Prototype (creational) - library for MetaTrader 5
//—prototype——————————————————– //   creational design pattern //   —intent //      create objects by copying a prototype //   —benefits—————————————————— //      class of object that is instantiated may vary //      —refactoring problem //         creating an object by specifying a class explicitly //         —solution //            create objects indirectly //            also abstract factory, factory method //   —applicability ———————————————— //      classes to instantiate are specified at run-time //      no … Read more

Singleton – creational design pattern – library MetaTrader 5

Singleton - creational design pattern - library for MetaTrader 5
//—singleton——————————————————– //   creational design pattern //   —intent //      ensure one instance of a class with a global point of access //   —benefits //      the sole instance of a class may vary //   —applicability————————————————- //      one instance of a class //         accessible to clients from a well-known access point //         extensible by subclassing //            extended instance should be good without … Read more

All creational design patterns – library MetaTrader 5

All creational design patterns - library for MetaTrader 5
//+——————————————————————+ //|                                             PatternOrganizer.mqh | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ //| 23 design patterns                                               | //+——————————————————————+ //   design patterns: elements of reusable object-oriented software //   gof > erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 //+——————————————————————+ //| classification                                                   | //+——————————————————————+ //   purpose > creational > 5 //      abstract factory, builder, … Read more