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

remove not needed class specialisation

parent ddb993b0
No related branches found
No related tags found
No related merge requests found
...@@ -53,17 +53,6 @@ class AlgorithmRegistry { ...@@ -53,17 +53,6 @@ class AlgorithmRegistry {
virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override;
}; };
   
template < class Return, class ... Params >
class EntryImpl < Return *, Params ... > : public Entry {
std::function < Return * ( Params ... ) > m_callback;
public:
EntryImpl ( std::function < Return * ( Params ... ) > callback, bool downcast, bool normalize ) : Entry ( downcast, normalize ), m_callback ( callback ) {
}
virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override;
};
static ext::map < std::string, ext::vector < std::pair < ext::vector < std::pair < std::string, ext::set < abstraction::ParamQualifiers::ParamQualifier > > >, std::shared_ptr < Entry > > > > & getEntries ( ) { static ext::map < std::string, ext::vector < std::pair < ext::vector < std::pair < std::string, ext::set < abstraction::ParamQualifiers::ParamQualifier > > >, std::shared_ptr < Entry > > > > & getEntries ( ) {
static ext::map < std::string, ext::vector < std::pair < ext::vector < std::pair < std::string, ext::set < abstraction::ParamQualifiers::ParamQualifier > > >, std::shared_ptr < Entry > > > > algorithmGroups; static ext::map < std::string, ext::vector < std::pair < ext::vector < std::pair < std::string, ext::set < abstraction::ParamQualifiers::ParamQualifier > > >, std::shared_ptr < Entry > > > > algorithmGroups;
return algorithmGroups; return algorithmGroups;
...@@ -247,11 +236,6 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::EntryIm ...@@ -247,11 +236,6 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::EntryIm
return std::make_shared < abstraction::AlgorithmAbstraction < Return, Params ... > > ( m_callback ); return std::make_shared < abstraction::AlgorithmAbstraction < Return, Params ... > > ( m_callback );
} }
   
template < class Return, class ... Params >
std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::EntryImpl < Return *, Params ... >::getAbstraction ( ) const {
return std::make_shared < abstraction::AlgorithmAbstraction < Return *, Params ... > > ( m_callback );
}
} /* namespace abstraction */ } /* namespace abstraction */
   
#endif /* _ALGORITHM_REGISTRY_HPP_ */ #endif /* _ALGORITHM_REGISTRY_HPP_ */
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