Skip to content

Multiple subroutine support #210

@jsrehak

Description

@jsrehak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    minorIsolated within in a single class or function.refactorRelated to refactoring of existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions