Skip to content

Add wiki page about factory patterns #493

@pavelkryukov

Description

@pavelkryukov

We use factory patterns for two classes: BP and Simulator, and we are going to spread the approach to new classes as well. Because of that we want to have the pattern described in our Wiki.

The structure of the page should follow the agenda:

  1. Motivation — why do we need factories?
  2. Step-by-step building: interface class, polymorphic derivatives, using std::map etc.
  3. Overheads and issues.
  4. Further reading (usually refers to books/articles author read to prepare the page).

I advise to look through "Gang of Four" book (a.k.a. Design Patterns: Elements of Reusable Object-Oriented Software, please demand it from the mentor), Wikipedia article, and our source code database (bpu.cpp and simulator.cpp).

Metadata

Metadata

Assignees

No one assigned

    Labels

    3Features of medium complexity or infrastructure enhancementsS1 — C++To solve the issue, you barely need knowledge about CPU microarchitecture, just C++ coding.documentationsAdds a new manual to Wiki.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions