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

decrease visibility of a method in WrapperAbstraction

parent 7d1c8288
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,13 @@ protected:
return m_abstraction;
}
 
void attachInputsToAbstraction ( ) {
for ( size_t index = 0; index < sizeof ... ( ParamTypes ); ++ index )
if ( ! this->m_abstraction->attachInput ( m_params [ index ].first, index, m_params [ index ].second, true ) )
throw std::invalid_argument ( "Can't connect param " + this->m_abstraction->getParamType ( index ) + " at " + ext::to_string ( index ) + " of wrapped algorithm with result of type " + m_params [ index ].first->getReturnType ( ) + "." );
}
public:
BaseWrapperAbstraction ( std::function < std::shared_ptr < OperationAbstraction > ( ParamTypes ... ) > wrapperFinder ) : m_WrapperFinder ( std::move ( wrapperFinder ) ) {
for ( size_t i = 0; i < sizeof ... ( ParamTypes ); ++ i ) {
......@@ -123,13 +130,6 @@ public:
throw std::domain_error ( "Proxy abstraction not avaiable before evaluation." );
}
 
void attachInputsToAbstraction ( ) {
for ( size_t index = 0; index < sizeof ... ( ParamTypes ); ++ index )
if ( ! this->m_abstraction->attachInput ( m_params [ index ].first, index, m_params [ index ].second, true ) )
throw std::invalid_argument ( "Can't connect param " + this->m_abstraction->getParamType ( index ) + " at " + ext::to_string ( index ) + " of wrapped algorithm with result of type " + m_params [ index ].first->getReturnType ( ) + "." );
}
};
 
template < class ReturnType, class ... ParamTypes >
......
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