Closed thomaskleiven closed 3 months ago
Yeah I think that's a good idea. I do admit things got fairly messy once I added the class template parameter, because then it meant that I had to write all the template method implementations in the header which makes it harder to read.
I agree, it's a nice addition, but it does make the code harder to read and maintain. Before creating the IEngine
interface, should we move the template functions to engine.inl
for inline implementations? This could improve readability and maintainability, making it easier to add the IEngine
in a subsequent step.
What about introducing an interface class
IEngine
to separate the interface from the implementation in the current Engine class template?Description: Introducing an IEngine interface will separate the interface from the implementation, providing:
Proposed Changes:
Could be something like this: