Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple subroutine support #210

Open
JessicaRehak opened this issue Feb 5, 2021 · 0 comments
Open

Multiple subroutine support #210

JessicaRehak opened this issue Feb 5, 2021 · 0 comments
Labels
minor Isolated within in a single class or function. refactor Related to refactoring of existing code.

Comments

@JessicaRehak
Copy link
Collaborator

A base class needs to be added called iteration::subroutine::HasSubroutine that supports adding one or more subroutines to an inheriting class.

  • The class should have a template parameter that is an enum identifying the locations that subroutines can be located.
  • Subroutines are installed using AddSubroutine(LocationEnum, std::unique_ptr<SubroutineI>) that installs in particular locations.
  • Provides a calling function Execute(LocationEnum, system::System) that executes the subroutine stored in the given location if the subroutine pointer is non-null.
@JessicaRehak JessicaRehak added minor Isolated within in a single class or function. refactor Related to refactoring of existing code. labels Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Isolated within in a single class or function. refactor Related to refactoring of existing code.
Projects
None yet
Development

No branches or pull requests

1 participant