11 #ifndef MERGING_TRANSFORMER_H 12 #define MERGING_TRANSFORMER_H 25 using details::vector_of_const_;
29 template <
typename Signature,
typename Traits_,
bool isLegacy>
33 template <
typename Out,
typename In,
typename Traits_>
40 using KeyValue =
typename base_class::KeyValue;
46 , m_inputLocations{
this, inputs.first, inputs.second,
50 if ( std::is_pointer_v<In> ) {
54 [](
auto& h ) { h.setOptional(
true ); } );
65 vector_of_const_<In> ins;
66 ins.reserve( m_inputs.size() );
69 put( std::get<0>( this->m_outputs ), std::as_const( *
this )( std::as_const( ins ) ) );
77 virtual Out operator()(
const vector_of_const_<In>& inputs )
const = 0;
89 template <
typename Out,
typename In,
typename Traits_>
96 using KeyValue =
typename base_class::KeyValue;
102 , m_inputLocations{
this, inputs.first, inputs.second,
106 if ( std::is_pointer_v<In> ) {
110 [](
auto& h ) { h.setOptional(
true ); } );
121 vector_of_const_<In> ins;
122 ins.reserve( m_inputs.size() );
125 put( std::get<0>( this->m_outputs ), ( *
this )( std::as_const( ins ) ) );
133 virtual Out operator()(
const vector_of_const_<In>& inputs )
const = 0;
137 template <
typename T>
147 template <
typename Signature,
typename Traits_ = Traits::useDefaults>
151 template <
typename Signature,
typename Traits_ = Traits::BaseClass_t<Gaudi::Algorithm>>
154 template <
typename... Outs,
typename In,
typename Traits_>
156 : details::DataHandleMixin<std::tuple<Outs...>, std::tuple<>, Traits_> {
175 vector_of_const_<In> ins;
176 ins.reserve( m_inputs.size() );
178 details::details2::get_from_handle<In>{} );
181 [&](
auto&... outhandle ) {
184 [&outhandle...](
auto&&... data ) {
185 ( details::put( outhandle, std::forward<decltype( data )>( data ) ), ... );
187 std::as_const( *
this )( std::as_const( ins ) ) );
198 virtual std::tuple<Outs...> operator()(
const vector_of_const_<In>& inputs )
const = 0;
202 template <
typename T>
210 template <
typename... Outs,
typename In,
typename Traits_>
213 : base_class(
name, pSvcLocator, outputs )
215 this, inputs.first, inputs.second,
218 if ( std::is_pointer_v<In> ) {
221 std::for_each( this->m_inputs.begin(), this->m_inputs.end(), [](
auto& h ) { h.setOptional(
true ); } );
Out1 * put(const DataObjectHandle< Out1 > &out_handle, Out2 &&out)
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Implementation of property with value of concrete type.
#define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_BEGIN
Gaudi::tagged_bool< class ImmediatelyInvokeHandler_tag > ImmediatelyInvokeHandler
virtual const std::string & message() const
error message to be printed
This class represents an entry point to all the event specific data.
This class is used for returning status codes from appropriate routines.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
virtual const StatusCode & code() const
StatusCode for Exception.
T back_inserter(T... args)
Handles make_vector_of_handles(IDataHandleHolder *owner, const std::vector< std::string > &init)
#define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_END
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.