1 #ifndef MERGING_TRANSFORMER_H 2 #define MERGING_TRANSFORMER_H 14 using details::vector_of_const_;
18 template <
typename Signature,
typename Traits_,
bool isLegacy>
22 template <
typename Out,
typename In,
typename Traits_>
26 using base_class = DataHandleMixin<std::tuple<Out>, void, Traits_>;
29 using KeyValue =
typename base_class::KeyValue;
35 , m_inputLocations{
this, inputs.first, inputs.second,
39 if ( std::is_pointer_v<In> ) {
43 [](
auto& h ) { h.setOptional(
true ); } );
54 vector_of_const_<In> ins;
55 ins.reserve( m_inputs.size() );
58 put( std::get<0>( this->m_outputs ), std::as_const( *
this )( std::as_const( ins ) ) );
66 virtual Out operator()(
const vector_of_const_<In>& inputs )
const = 0;
78 template <
typename Out,
typename In,
typename Traits_>
82 using base_class = DataHandleMixin<std::tuple<Out>, void, Traits_>;
85 using KeyValue =
typename base_class::KeyValue;
91 , m_inputLocations{
this, inputs.first, inputs.second,
95 if ( std::is_pointer_v<In> ) {
99 [](
auto& h ) { h.setOptional(
true ); } );
110 vector_of_const_<In> ins;
111 ins.reserve( m_inputs.size() );
114 put( std::get<0>( this->m_outputs ), ( *
this )( std::as_const( ins ) ) );
122 virtual Out operator()(
const vector_of_const_<In>& inputs )
const = 0;
126 template <
typename T>
136 template <
typename Signature,
typename Traits_ = Traits::useDefaults>
140 template <
typename Signature,
typename Traits_ = Traits::BaseClass_t<Gaudi::Algorithm>>
143 template <
typename... Outs,
typename In,
typename Traits_>
145 : details::DataHandleMixin<std::tuple<Outs...>, void, Traits_> {
164 vector_of_const_<In> ins;
165 ins.reserve( m_inputs.size() );
167 details::details2::get_from_handle<In>{} );
170 [&](
auto&... outhandle ) {
173 [&outhandle...](
auto&&... data ) {
174 ( details::put( outhandle, std::forward<decltype( data )>( data ) ), ... );
176 std::as_const( *
this )( std::as_const( ins ) ) );
187 virtual std::tuple<Outs...> operator()(
const vector_of_const_<In>& inputs )
const = 0;
191 template <
typename T>
199 template <
typename... Outs,
typename In,
typename Traits_>
202 : base_class(
name, pSvcLocator, outputs )
204 this, inputs.first, inputs.second,
207 if ( std::is_pointer_v<In> ) {
210 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
constexpr static const auto SUCCESS
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.