Skip to content
Snippets Groups Projects
Commit a9792762 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

improve registration of algorithms

parent 4ffe816a
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
} }
   
template < class ... ParamNames > template < class ... ParamNames >
AbstractRegister ( ReturnType ( * callback ) ( ParameterTypes ... ) ) : AbstractRegister ( callback, abstraction::AlgorithmCategories::AlgorithmCategory::DEFAULT ) { AbstractRegister ( ReturnType ( * callback ) ( ParameterTypes ... ), ParamNames ... paramNames ) : AbstractRegister ( callback, abstraction::AlgorithmCategories::AlgorithmCategory::DEFAULT, paramNames ... ) {
} }
   
AbstractRegister ( AbstractRegister && ) = default; AbstractRegister ( AbstractRegister && ) = default;
...@@ -62,6 +62,8 @@ public: ...@@ -62,6 +62,8 @@ public:
abstraction::AlgorithmRegistry::unregisterWrapper < Algorithm, ParameterTypes ... > ( ); abstraction::AlgorithmRegistry::unregisterWrapper < Algorithm, ParameterTypes ... > ( );
} ) { } ) {
} }
WrapperRegister ( WrapperRegister && ) = default;
}; };
   
template < class Algorithm, class ReturnType, class ObjectType, class ... ParameterTypes > template < class Algorithm, class ReturnType, class ObjectType, class ... ParameterTypes >
...@@ -79,6 +81,8 @@ public: ...@@ -79,6 +81,8 @@ public:
} ) { } ) {
} }
   
MethodRegister ( MethodRegister && ) = default;
}; };
   
} /* namespace registration */ } /* namespace registration */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment