The Gaudi Framework  master (37c0b60a)
details.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 #include <Gaudi/Algorithm.h>
14 #include <GaudiKernel/Algorithm.h>
17 #include <GaudiKernel/IBinder.h>
19 #include <GaudiKernel/detected.h>
20 #include <cassert>
21 #include <range/v3/version.hpp>
22 #include <range/v3/view/const.hpp>
23 #include <range/v3/view/zip.hpp>
24 #include <sstream>
25 #include <type_traits>
26 
27 // upstream has renamed namespace ranges::view ranges::views
28 #if RANGE_V3_VERSION < 900
29 namespace ranges::views {
30  using namespace ranges::view;
31 }
32 #endif
33 
34 #if defined( __clang__ ) && ( __clang_major__ < 11 ) || defined( __APPLE__ ) && ( __clang_major__ < 12 )
35 # define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_BEGIN \
36  _Pragma( "clang diagnostic push" ) _Pragma( "clang diagnostic ignored \"-Wunused-lambda-capture\"" )
37 # define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_END _Pragma( "clang diagnostic pop" )
38 #else
39 # define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_BEGIN
40 # define GF_SUPPRESS_SPURIOUS_CLANG_WARNING_END
41 #endif
42 
43 // temporary hack to help in transition to updated constructor
44 // allows to write code which is forward and backwards compatible
45 #define GAUDI_FUNCTIONAL_CONSTRUCTOR_USES_TUPLE
46 
48 
49  // CRJ : Stuff for zipping
50  namespace zip {
51 
53  template <typename OS, typename Arg>
54  void printSizes( OS& out, Arg&& arg ) {
55  out << "SizeOf'" << System::typeinfoName( typeid( Arg ) ) << "'=" << std::forward<Arg>( arg ).size();
56  }
57 
59  template <typename OS, typename Arg, typename... Args>
60  void printSizes( OS& out, Arg&& arg, Args&&... args ) {
61  printSizes( out, arg );
62  out << ", ";
63  printSizes( out, args... );
64  }
65 
67  template <typename A>
68  inline bool check_sizes( const A& ) noexcept {
69  return true;
70  }
71 
73  template <typename A, typename B>
74  inline bool check_sizes( const A& a, const B& b ) noexcept {
75  return a.size() == b.size();
76  }
77 
79  template <typename A, typename B, typename... C>
80  inline bool check_sizes( const A& a, const B& b, const C&... c ) noexcept {
81  return ( check_sizes( a, b ) && check_sizes( b, c... ) );
82  }
83 
85  template <typename... Args>
86  inline decltype( auto ) verifySizes( Args&... args ) {
87  if ( !check_sizes( args... ) ) {
88  std::ostringstream mess;
89  mess << "Zipped containers have different sizes : ";
90  printSizes( mess, args... );
91  throw GaudiException( mess.str(), "Gaudi::Functional::details::zip::verifySizes", StatusCode::FAILURE );
92  }
93  }
94 
96  template <typename... Args>
97  inline decltype( auto ) range( Args&&... args ) {
98 #ifndef NDEBUG
99  verifySizes( args... );
100 #endif
101  return ranges::views::zip( std::forward<Args>( args )... );
102  }
103 
105  template <typename... Args>
106  inline decltype( auto ) const_range( Args&&... args ) {
107 #ifndef NDEBUG
108  verifySizes( args... );
109 #endif
110  return ranges::views::const_( ranges::views::zip( std::forward<Args>( args )... ) );
111  }
112  } // namespace zip
113 
116  out.reserve( in.size() );
118  []( const std::string& i ) { return DataObjID{ i }; } );
119  return out;
120  }
121 
123  namespace details2 {
124  template <typename T>
125  using is_optional_ = decltype( std::declval<T>().has_value(), std::declval<T>().value() );
126 
127  template <typename T>
128  using value_type_of_t = typename T::value_type;
129 
130  } // namespace details2
131  template <typename Arg>
132  constexpr bool is_optional_v = Gaudi::cpp17::is_detected_v<details2::is_optional_, Arg>;
133 
134  template <typename Arg>
135  using require_is_optional = std::enable_if_t<is_optional_v<Arg>>;
136 
137  template <typename Arg>
138  using require_is_not_optional = std::enable_if_t<!is_optional_v<Arg>>;
139 
140  template <typename T>
142  std::conditional_t<is_optional_v<T>, Gaudi::cpp17::detected_t<details2::value_type_of_t, T>, T>;
143 
144  constexpr struct invoke_optionally_t {
145  template <typename F, typename Arg, typename = require_is_not_optional<Arg>>
146  decltype( auto ) operator()( F&& f, Arg&& arg ) const {
147  return std::invoke( std::forward<F>( f ), std::forward<Arg>( arg ) );
148  }
149  template <typename F, typename Arg, typename = require_is_optional<Arg>>
150  void operator()( F&& f, Arg&& arg ) const {
151  if ( arg ) std::invoke( std::forward<F>( f ), *std::forward<Arg>( arg ) );
152  }
155 
156  template <typename Value, std::size_t... I>
157  auto get_values_helper( std::index_sequence<I...> ) {
158  return std::make_tuple( ( (void)I, Value{} )... );
159  }
160 
161  template <typename Value, auto N>
162  using RepeatValues_ = decltype( get_values_helper<Value>( std::make_index_sequence<N>() ) );
163 
165 
166  template <typename Out1, typename Out2,
167  typename = std::enable_if_t<std::is_constructible_v<Out1, Out2> && std::is_base_of_v<DataObject, Out1>>>
168  auto put( const DataObjectHandle<Out1>& out_handle, Out2&& out ) {
169  return out_handle.put( std::make_unique<Out1>( std::forward<Out2>( out ) ) );
170  }
171 
172  template <typename Out1, typename Out2, typename = std::enable_if_t<std::is_constructible_v<Out1, Out2>>>
173  auto put( const DataObjectHandle<AnyDataWrapper<Out1>>& out_handle, Out2&& out ) {
174  return out_handle.put( std::forward<Out2>( out ) );
175  }
176 
177  // optional put
178  template <typename OutHandle, typename OptOut, typename = require_is_optional<OptOut>>
179  void put( const OutHandle& out_handle, OptOut&& out ) {
180  if ( out ) put( out_handle, *std::forward<OptOut>( out ) );
181  }
182 
184  // adapt to differences between eg. std::vector (which has push_back) and KeyedContainer (which has insert)
185  // adapt to getting a T, and a container wanting T* by doing new T{ std::move(out) }
186  // adapt to getting a optional<T>
187 
188  constexpr struct insert_t {
189  // for Container<T*>, return T
190  template <typename Container>
191  using c_remove_ptr_t = std::remove_pointer_t<typename Container::value_type>;
192 
193  template <typename Container, typename Value>
194  auto operator()( Container& c, Value&& v ) const -> decltype( c.push_back( v ) ) {
195  return c.push_back( std::forward<Value>( v ) );
196  }
197 
198  template <typename Container, typename Value>
199  auto operator()( Container& c, Value&& v ) const -> decltype( c.insert( v ) ) {
200  return c.insert( std::forward<Value>( v ) );
201  }
202 
203  // Container<T*> with T&& as argument
204  template <typename Container, typename Value,
205  typename = std::enable_if_t<std::is_pointer_v<typename Container::value_type>>,
206  typename = std::enable_if_t<std::is_convertible_v<Value, c_remove_ptr_t<Container>>>>
207  auto operator()( Container& c, Value&& v ) const {
208  return operator()( c, new c_remove_ptr_t<Container>{ std::forward<Value>( v ) } );
209  }
210 
211  } insert{};
212 
214 
215  constexpr struct deref_t {
216  template <typename In, typename = std::enable_if_t<!std::is_pointer_v<In>>>
217  const In& operator()( const In& in ) const {
218  return in;
219  }
220 
221  template <typename In, typename = std::enable_if_t<!std::is_pointer_v<std::decay_t<In>>>>
222  In operator()( In&& in ) const {
223  return std::forward<In>( in );
224  }
225 
226  template <typename In>
227  const In& operator()( const In* in ) const {
228  assert( in != nullptr );
229  return *in;
230  }
231  } deref{};
232 
234  // if Container is a pointer, then we're optional items
235  namespace details2 {
236  template <typename T>
238 
239  template <typename T, typename IT>
241 
242  template <typename T, typename IT>
244 
245  template <typename T, typename IT>
246  struct is_gaudi_range<std::optional<Gaudi::NamedRange_<T, IT>>> : std::true_type {};
247 
248  template <typename T>
249  constexpr static bool is_gaudi_range_v = is_gaudi_range<T>::value;
250 
251  template <typename Container, typename Value>
252  void push_back( Container& c, const Value& v, std::true_type ) {
253  c.push_back( v );
254  }
255  template <typename Container, typename Value>
256  void push_back( Container& c, const Value& v, std::false_type ) {
257  c.push_back( &v );
258  }
259 
260  template <typename In>
262  template <template <typename> class Handle, typename I, typename = std::enable_if_t<std::is_convertible_v<I, In>>>
263  auto operator()( const Handle<I>& h ) -> const In& {
264  return *h.get();
265  }
266  template <template <typename> class Handle, typename I, typename IT>
267  auto operator()( const Handle<Gaudi::Range_<I, IT>>& h ) -> const In {
268  return h.get();
269  }
270  template <template <typename> class Handle, typename I, typename IT>
271  auto operator()( const Handle<Gaudi::NamedRange_<I, IT>>& h ) -> const In {
272  return h.get();
273  }
274  template <template <typename> class Handle, typename I, typename IT>
275  auto operator()( const Handle<std::optional<Gaudi::NamedRange_<I, IT>>>& h ) -> const In {
276  return h.get();
277  }
278  template <template <typename> class Handle, typename I,
279  typename = std::enable_if_t<std::is_convertible_v<I*, In>>>
280  auto operator()( const Handle<I>& h ) -> const In {
281  return h.getIfExists();
282  } // In is-a pointer
283  };
284 
285  template <typename T>
286  T* deref_if( T* const t, std::false_type ) {
287  return t;
288  }
289  template <typename T>
290  T& deref_if( T* const t, std::true_type ) {
291  return *t;
292  }
293  } // namespace details2
294 
295  template <typename Container>
297  static constexpr bool is_pointer = std::is_pointer_v<Container>;
298  static constexpr bool is_range = details2::is_gaudi_range_v<Container>;
299  using val_t = std::add_const_t<std::remove_pointer_t<Container>>;
300  using ptr_t = std::add_pointer_t<val_t>;
301  using ref_t = std::add_lvalue_reference_t<val_t>;
304 
305  public:
306  using value_type = std::conditional_t<is_pointer, ptr_t, val_t>;
307  using size_type = typename ContainerVector::size_type;
308  class iterator {
309  using it_t = typename ContainerVector::const_iterator;
311  friend class vector_of_const_;
312  iterator( it_t iter ) : m_i( iter ) {}
313  using ret_t = std::conditional_t<is_pointer, ptr_t, ref_t>;
314 
315  public:
316  using iterator_category = typename it_t::iterator_category;
317  using value_type = typename it_t::iterator_category;
318  using reference = typename it_t::reference;
319  using pointer = typename it_t::pointer;
320  using difference_type = typename it_t::difference_type;
321 
322  friend bool operator!=( const iterator& lhs, const iterator& rhs ) { return lhs.m_i != rhs.m_i; }
323  friend bool operator==( const iterator& lhs, const iterator& rhs ) { return lhs.m_i == rhs.m_i; }
324  friend auto operator-( const iterator& lhs, const iterator& rhs ) { return lhs.m_i - rhs.m_i; }
325  ret_t operator*() const {
326  if constexpr ( is_range ) {
327  return *m_i;
328  } else {
329  return details2::deref_if( *m_i, std::bool_constant<!is_pointer>{} );
330  }
331  }
333  ++m_i;
334  return *this;
335  }
337  --m_i;
338  return *this;
339  }
340  bool is_null() const { return !*m_i; }
341  explicit operator bool() const { return !is_null(); }
342  };
343  vector_of_const_() = default;
344  void reserve( size_type size ) { m_containers.reserve( size ); }
345  template <typename T> // , typename = std::is_convertible<T,std::conditional_t<is_pointer,ptr_t,val_t>>
346  void push_back( T&& container ) {
347  details2::push_back( m_containers, std::forward<T>( container ),
348  std::bool_constant < is_pointer || is_range > {} );
349  } // note: does not copy its argument, so we're not really a container...
350  iterator begin() const { return m_containers.begin(); }
351  iterator end() const { return m_containers.end(); }
352  size_type size() const { return m_containers.size(); }
353 
354  template <typename X = Container>
355  std::enable_if_t<!std::is_pointer_v<X>, ref_t> front() const {
356  return *m_containers.front();
357  }
358  template <typename X = Container>
359  std::enable_if_t<std::is_pointer_v<X>, ptr_t> front() const {
360  return m_containers.front();
361  }
362 
363  template <typename X = Container>
364  std::enable_if_t<!std::is_pointer_v<X>, ref_t> back() const {
365  return *m_containers.back();
366  }
367  template <typename X = Container>
368  std::enable_if_t<std::is_pointer_v<X>, ptr_t> back() const {
369  return m_containers.back();
370  }
371 
372  template <typename X = Container>
373  std::enable_if_t<!std::is_pointer_v<X>, ref_t> operator[]( size_type i ) const {
374  return *m_containers[i];
375  }
376  template <typename X = Container>
377  std::enable_if_t<std::is_pointer_v<X>, ptr_t> operator[]( size_type i ) const {
378  return m_containers[i];
379  }
380 
381  template <typename X = Container>
382  std::enable_if_t<!std::is_pointer_v<X>, ref_t> at( size_type i ) const {
383  return *m_containers[i];
384  }
385  template <typename X = Container>
386  std::enable_if_t<std::is_pointer_v<X>, ptr_t> at( size_type i ) const {
387  return m_containers[i];
388  }
389 
390  bool is_null( size_type i ) const { return !m_containers[i]; }
391  };
392 
394  namespace detail2 { // utilities for detected_or_t{,_} usage
395  template <typename Tr>
396  using BaseClass_t = typename Tr::BaseClass;
397  template <typename Tr, typename T>
398  using OutputHandle_t = typename Tr::template OutputHandle<T>;
399  template <typename Tr, typename T>
400  using InputHandle_t = typename Tr::template InputHandle<T>;
401 
402  template <typename T>
403  constexpr auto is_tool_v = std::is_base_of_v<IAlgTool, std::decay_t<T>>;
404 
405  template <typename T>
407 
408  template <typename T>
409  using DefaultInputHandle = std::conditional_t<is_tool_v<T>, ToolHandle_t<T>, DataObjectReadHandle<T>>;
410  } // namespace detail2
411 
412  // check whether Traits::BaseClass is a valid type,
413  // if so, define BaseClass_t<Traits> as being Traits::BaseClass
414  // else define as being Gaudi::Algorithm
415  template <typename Tr, typename Base = Gaudi::Algorithm>
417 
418  // check whether Traits::{Input,Output}Handle<T> is a valid type,
419  // if so, define {Input,Output}Handle_t<Traits,T> as being Traits::{Input,Output}Handle<T>
420  // else define as being DataObject{Read,,Write}Handle<T>
421 
422  template <typename Tr, typename T>
424  template <typename Tr, typename T>
426 
427  template <typename Traits>
428  inline constexpr bool isLegacy =
429  std::is_base_of_v<Gaudi::details::LegacyAlgorithmAdapter, details::BaseClass_t<Traits>>;
430 
432 #define GAUDI_FUNCTIONAL_MAKE_VECTOR_OF_HANDLES_USES_DATAOBJID
433 
434  template <typename Handles>
436  Handles handles;
437  handles.reserve( init.size() );
438  std::transform( init.begin(), init.end(), std::back_inserter( handles ),
439  [&]( const auto& loc ) -> typename Handles::value_type {
440  return { loc, owner };
441  } );
442  return handles;
443  }
444 
445  template <typename Handle, typename Algo>
446  auto get( const Handle& handle, const Algo&, const EventContext& )
447  -> decltype( details::deref( handle.get() ) ) // make it SFINAE friendly...
448  {
449  return details::deref( handle.get() );
450  }
451 
452  template <typename IFace, typename Algo>
453  auto get( const ToolHandle<Gaudi::Interface::Bind::IBinder<IFace>>& handle, const Algo&, const EventContext& ctx ) {
454  return handle.bind( ctx );
455  }
456 
457  template <typename Handle>
458  auto getKey( const Handle& h ) -> decltype( h.objKey() ) {
459  return h.objKey();
460  }
461 
463  // given a pack, return a corresponding tuple
464  template <typename... In>
466  using type = std::tuple<In...>;
467 
468  static_assert( !std::disjunction_v<std::is_same<EventContext, In>...>,
469  "EventContext can only appear as first argument" );
470 
471  template <typename Algorithm, typename Handles>
472  static auto apply( const Algorithm& algo, Handles& handles ) {
473  return std::apply(
474  [&]( const auto&... handle ) { return algo( get( handle, algo, Gaudi::Hive::currentContext() )... ); },
475  handles );
476  }
477  template <typename Algorithm, typename Handles>
478  static auto apply( const Algorithm& algo, const EventContext& ctx, Handles& handles ) {
479  return std::apply( [&]( const auto&... handle ) { return algo( get( handle, algo, ctx )... ); }, handles );
480  }
481  };
482 
483  // except when it starts with EventContext, then drop it
484  template <typename... In>
486  using type = std::tuple<In...>;
487 
488  static_assert( !std::disjunction_v<std::is_same<EventContext, In>...>,
489  "EventContext can only appear as first argument" );
490 
491  template <typename Algorithm, typename Handles>
492  static auto apply( const Algorithm& algo, const EventContext& ctx, Handles& handles ) {
493  return std::apply( [&]( const auto&... handle ) { return algo( ctx, get( handle, algo, ctx )... ); }, handles );
494  }
495 
496  template <typename Algorithm, typename Handles>
497  static auto apply( const Algorithm& algo, Handles& handles ) {
498  return apply( algo, Gaudi::Hive::currentContext(), handles );
499  }
500  };
501 
502  template <typename... In>
504 
505  template <typename OutputSpec, typename InputSpec, typename Traits_>
507 
508  template <typename Out, typename In, typename Tr>
510  const std::string& newLoc ) {
511  auto sc = parent.setProperty( prop, newLoc );
512  if ( sc.isFailure() ) throw GaudiException( "Could not set Property", prop + " -> " + newLoc, sc );
513  }
514 
515  template <typename Out, typename In, typename Tr>
517  const std::vector<std::string>& newLocs ) {
519  GaudiUtils::details::ostream_joiner( ss << '[', newLocs, ", ", []( std::ostream& os, const auto& i ) -> auto& {
520  return os << "'" << i << "'";
521  } ) << ']';
522  auto sc = parent.setProperty( prop, ss.str() );
523  if ( sc.isFailure() ) throw GaudiException( "Could not set Property", prop + " -> " + ss.str(), sc );
524  }
525 
526  template <typename... Out, typename... In, typename Traits_>
527  class DataHandleMixin<std::tuple<Out...>, std::tuple<In...>, Traits_> : public BaseClass_t<Traits_> {
528  static_assert( std::is_base_of_v<Algorithm, BaseClass_t<Traits_>>, "BaseClass must inherit from Algorithm" );
529 
530  template <typename IArgs, typename OArgs, std::size_t... I, std::size_t... J>
531  DataHandleMixin( std::string name, ISvcLocator* pSvcLocator, const IArgs& inputs, std::index_sequence<I...>,
532  const OArgs& outputs, std::index_sequence<J...> )
533  : BaseClass_t<Traits_>( std::move( name ), pSvcLocator )
534  , m_inputs( std::tuple_cat( std::forward_as_tuple( this ), std::get<I>( inputs ) )... )
535  , m_outputs( std::tuple_cat( std::forward_as_tuple( this ), std::get<J>( outputs ) )... ) {
536  // make sure this algorithm is seen as reentrant by Gaudi
537  this->setProperty( "Cardinality", 0 ).ignore();
538  }
539 
540  public:
541  constexpr static std::size_t N_in = sizeof...( In );
542  constexpr static std::size_t N_out = sizeof...( Out );
543 
546 
547  // generic constructor: N -> M
549  RepeatValues_<KeyValue, N_out> const& outputs )
550  : DataHandleMixin( std::move( name ), pSvcLocator, inputs, std::index_sequence_for<In...>{}, outputs,
551  std::index_sequence_for<Out...>{} ) {}
552 
553  // special cases: forward to the generic case...
554  // 1 -> 1
556  : DataHandleMixin( std::move( name ), locator, std::forward_as_tuple( input ),
557  std::forward_as_tuple( output ) ) {}
558  // 1 -> N
560  RepeatValues_<KeyValue, N_out> const& outputs )
561  : DataHandleMixin( std::move( name ), locator, std::forward_as_tuple( input ), outputs ) {}
562  // N -> 1
564  const KeyValue& output )
565  : DataHandleMixin( std::move( name ), locator, inputs, std::forward_as_tuple( output ) ) {}
566 
567  template <std::size_t N = 0>
568  decltype( auto ) inputLocation() const {
569  return getKey( std::get<N>( m_inputs ) );
570  }
571  template <typename T>
572  decltype( auto ) inputLocation() const {
573  return getKey( std::get<details::InputHandle_t<Traits_, std::decay_t<T>>>( m_inputs ) );
574  }
575  constexpr unsigned int inputLocationSize() const { return N_in; }
576 
577  template <std::size_t N = 0>
578  decltype( auto ) outputLocation() const {
579  return getKey( std::get<N>( m_outputs ) );
580  }
581  template <typename T>
582  decltype( auto ) outputLocation() const {
583  return getKey( std::get<details::OutputHandle_t<Traits_, std::decay_t<T>>>( m_outputs ) );
584  }
585  constexpr unsigned int outputLocationSize() const { return N_out; }
586 
587  protected:
588  bool isReEntrant() const override { return true; }
589 
592  };
593 
594  template <typename Traits_>
595  class DataHandleMixin<std::tuple<>, std::tuple<>, Traits_> : public BaseClass_t<Traits_> {
596  static_assert( std::is_base_of_v<Algorithm, BaseClass_t<Traits_>>, "BaseClass must inherit from Algorithm" );
597 
598  public:
602  : BaseClass_t<Traits_>( std::move( name ), pSvcLocator ) {
603  // make sure this algorithm is seen as reentrant by Gaudi
604  this->setProperty( "Cardinality", 0 ).ignore();
605  }
606 
607  protected:
608  bool isReEntrant() const override { return true; }
609 
611  };
612 
613  template <typename... In, typename Traits_>
614  class DataHandleMixin<std::tuple<>, std::tuple<In...>, Traits_> : public BaseClass_t<Traits_> {
615  static_assert( std::is_base_of_v<Algorithm, BaseClass_t<Traits_>>, "BaseClass must inherit from Algorithm" );
616 
617  template <typename IArgs, std::size_t... I>
618  DataHandleMixin( std::string name, ISvcLocator* pSvcLocator, const IArgs& inputs, std::index_sequence<I...> )
619  : BaseClass_t<Traits_>( std::move( name ), pSvcLocator )
620  , m_inputs( std::tuple_cat( std::forward_as_tuple( this ), std::get<I>( inputs ) )... ) {
621  // make sure this algorithm is seen as reentrant by Gaudi
622  this->setProperty( "Cardinality", 0 ).ignore();
623  }
624 
625  public:
628  constexpr static std::size_t N_in = sizeof...( In );
629 
630  // generic constructor: N -> 0
632  : DataHandleMixin( std::move( name ), pSvcLocator, inputs, std::index_sequence_for<In...>{} ) {}
633 
634  // special cases: forward to the generic case...
635  // 1 -> 0
637  : DataHandleMixin( std::move( name ), locator, std::forward_as_tuple( input ) ) {}
638 
639  template <std::size_t N = 0>
640  decltype( auto ) inputLocation() const {
641  return getKey( std::get<N>( m_inputs ) );
642  }
643  template <typename T>
644  decltype( auto ) inputLocation() const {
645  return getKey( std::get<details::InputHandle_t<Traits_, std::decay_t<T>>>( m_inputs ) );
646  }
647  constexpr unsigned int inputLocationSize() const { return N_in; }
648 
649  protected:
650  bool isReEntrant() const override { return true; }
651 
653  };
654 
655  template <typename Traits_>
656  class DataHandleMixin<std::tuple<void>, std::tuple<>, Traits_>
657  : public DataHandleMixin<std::tuple<>, std::tuple<>, Traits_> {
658  public:
660  };
661 
662  template <typename... Out, typename Traits_>
663  class DataHandleMixin<std::tuple<Out...>, std::tuple<>, Traits_> : public BaseClass_t<Traits_> {
664  static_assert( std::is_base_of_v<Algorithm, BaseClass_t<Traits_>>, "BaseClass must inherit from Algorithm" );
665 
666  template <typename OArgs, std::size_t... J>
667  DataHandleMixin( std::string name, ISvcLocator* pSvcLocator, const OArgs& outputs, std::index_sequence<J...> )
668  : BaseClass_t<Traits_>( std::move( name ), pSvcLocator )
669  , m_outputs( std::tuple_cat( std::forward_as_tuple( this ), std::get<J>( outputs ) )... ) {
670  // make sure this algorithm is seen as reentrant by Gaudi
671  this->setProperty( "Cardinality", 0 ).ignore();
672  }
673 
674  public:
675  constexpr static std::size_t N_out = sizeof...( Out );
678 
679  // generic constructor: 0 -> N
681  : DataHandleMixin( std::move( name ), pSvcLocator, outputs, std::index_sequence_for<Out...>{} ) {}
682 
683  // 0 -> 1
685  : DataHandleMixin( std::move( name ), locator, std::forward_as_tuple( output ) ) {}
686 
687  template <std::size_t N = 0>
688  decltype( auto ) outputLocation() const {
689  return getKey( std::get<N>( m_outputs ) );
690  }
691  constexpr unsigned int outputLocationSize() const { return N_out; }
692 
693  protected:
694  bool isReEntrant() const override { return true; }
695 
697  };
698 
700  template <typename Fun, typename Container, typename... Args>
701  constexpr void applyPostProcessing( const Fun&, Container&, Args... ) {
702  static_assert( sizeof...( Args ) == 0, "Args should not be used!" );
703  }
704 
705  template <typename Fun, typename Container>
706  auto applyPostProcessing( const Fun& fun, Container& c ) -> decltype( fun.postprocess( c ), void() ) {
707  fun.postprocess( c );
708  }
709 
710 } // namespace Gaudi::Functional::details
IDataHandleHolder
Definition: IDataHandleHolder.h:24
Gaudi::Functional::details::detail2::BaseClass_t
typename Tr::BaseClass BaseClass_t
Definition: details.h:396
Gaudi::Functional::details::insert_t::operator()
auto operator()(Container &c, Value &&v) const
Definition: details.h:207
Gaudi::Functional::details::invoke_optionally_t
Definition: details.h:144
Gaudi::Functional::details::vector_of_const_::operator[]
std::enable_if_t< std::is_pointer_v< X >, ptr_t > operator[](size_type i) const
Definition: details.h:377
Gaudi::Functional::details::vector_of_const_::front
std::enable_if_t< std::is_pointer_v< X >, ptr_t > front() const
Definition: details.h:359
Gaudi::Functional::details::vector_of_const_::val_t
std::add_const_t< std::remove_pointer_t< Container > > val_t
Definition: details.h:299
Gaudi::Functional::details::vector_of_const_::iterator::is_null
bool is_null() const
Definition: details.h:340
Gaudi::Functional::details::vector_of_const_::iterator
Definition: details.h:308
Gaudi::Functional::details::deref_t::operator()
const In & operator()(const In *in) const
Definition: details.h:227
std::is_same
Gaudi::Functional::details::vector_of_const_::iterator::operator*
ret_t operator*() const
Definition: details.h:325
std::make_tuple
T make_tuple(T... args)
std::false_type
std::string
STL class.
details::size
constexpr auto size(const T &, Args &&...) noexcept
Definition: AnyDataWrapper.h:23
setProperty
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
Definition: Bootstrap.cpp:247
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::m_inputs
std::tuple< details::InputHandle_t< Traits_, In >... > m_inputs
Definition: details.h:652
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *locator, const KeyValue &input, const KeyValue &output)
Definition: details.h:555
Gaudi::Functional::details::get
auto get(const ToolHandle< Gaudi::Interface::Bind::IBinder< IFace >> &handle, const Algo &, const EventContext &ctx)
Definition: details.h:453
Gaudi::Functional::details
Definition: Consumer.h:21
Gaudi::NamedRange_
Definition: NamedRange.h:52
std::move
T move(T... args)
Gaudi::Functional::details::require_is_not_optional
std::enable_if_t<!is_optional_v< Arg > > require_is_not_optional
Definition: details.h:138
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition: ThreadLocalContext.cpp:30
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::isReEntrant
bool isReEntrant() const override
Definition: details.h:588
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *locator, const KeyValue &output)
Definition: details.h:684
Gaudi::Functional::details::InputHandle_t
Gaudi::cpp17::detected_or_t< detail2::DefaultInputHandle< T >, detail2::InputHandle_t, Tr, T > InputHandle_t
Definition: details.h:425
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, RepeatValues_< KeyValue, N_out > const &outputs)
Definition: details.h:680
Gaudi::Functional::details::invoke_optionally
constexpr struct Gaudi::Functional::details::invoke_optionally_t invoke_optionally
Gaudi::Functional::details::vector_of_const_::front
std::enable_if_t<!std::is_pointer_v< X >, ref_t > front() const
Definition: details.h:355
Gaudi::Functional::details::vector_of_const_::iterator::operator--
iterator & operator--()
Definition: details.h:336
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::isReEntrant
bool isReEntrant() const override
Definition: details.h:694
std::pair< std::string, std::string >
std::vector::reserve
T reserve(T... args)
GaudiException.h
Gaudi::Functional::details::insert_t::operator()
auto operator()(Container &c, Value &&v) const -> decltype(c.push_back(v))
Definition: details.h:194
Gaudi::Functional::details::isLegacy
constexpr bool isLegacy
Definition: details.h:428
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, const IArgs &inputs, std::index_sequence< I... >)
Definition: details.h:618
std::vector< DataObjID >
std::string::size
T size(T... args)
Gaudi::Functional::details::deref_t
Definition: details.h:215
ISvcLocator
Definition: ISvcLocator.h:46
std::back_inserter
T back_inserter(T... args)
GaudiException
Definition: GaudiException.h:31
Gaudi::Functional::details::vector_of_const_::m_containers
ContainerVector m_containers
Definition: details.h:303
Algorithm.h
Gaudi::Functional::details::details2::get_from_handle::operator()
auto operator()(const Handle< I > &h) -> const In &
Definition: details.h:263
Gaudi::Functional::details::vector_of_const_::iterator::iterator_category
typename it_t::iterator_category iterator_category
Definition: details.h:316
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::m_inputs
std::tuple< details::InputHandle_t< Traits_, In >... > m_inputs
Definition: details.h:590
Gaudi::Functional::details::vector_of_const_::reserve
void reserve(size_type size)
Definition: details.h:344
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::outputLocationSize
constexpr unsigned int outputLocationSize() const
Definition: details.h:691
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple<>, Traits_ >::isReEntrant
bool isReEntrant() const override
Definition: details.h:608
Gaudi::Functional::details::vector_of_const_::size_type
typename ContainerVector::size_type size_type
Definition: details.h:307
std::tuple
Gaudi::Functional::details::zip::const_range
decltype(auto) const_range(Args &&... args)
Zips multiple containers together to form a single const range.
Definition: details.h:106
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *locator, RepeatValues_< KeyValue, N_in > const &inputs, const KeyValue &output)
Definition: details.h:563
gaudirun.c
c
Definition: gaudirun.py:525
std::vector::back
T back(T... args)
ranges::views
Definition: details.h:29
System::typeinfoName
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:315
Gaudi::Functional::details::vector_of_const_
Definition: details.h:296
Gaudi::Functional::details::vector_of_const_::operator[]
std::enable_if_t<!std::is_pointer_v< X >, ref_t > operator[](size_type i) const
Definition: details.h:373
gaudirun.output
output
Definition: gaudirun.py:521
Gaudi::Functional::details::vector_of_const_::iterator::operator-
friend auto operator-(const iterator &lhs, const iterator &rhs)
Definition: details.h:324
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, const IArgs &inputs, std::index_sequence< I... >, const OArgs &outputs, std::index_sequence< J... >)
Definition: details.h:531
MultiMergers.Value
Value
Definition: MultiMergers.py:15
Gaudi::Functional::details::get_values_helper
auto get_values_helper(std::index_sequence< I... >)
Definition: details.h:157
Gaudi::Functional::details::to_DataObjID
std::vector< DataObjID > to_DataObjID(const std::vector< std::string > &in)
Definition: details.h:114
std::vector::front
T front(T... args)
Gaudi::Functional::details::deref_t::operator()
In operator()(In &&in) const
Definition: details.h:222
Gaudi::Functional::details::details2::get_from_handle::operator()
auto operator()(const Handle< Gaudi::Range_< I, IT >> &h) -> const In
Definition: details.h:267
DataObjectHandle
DataObjectHandle.h GaudiKernel/DataObjectHandle.h.
Definition: AlgTool.h:36
Gaudi::Functional::details::vector_of_const_::iterator::iterator
iterator(it_t iter)
Definition: details.h:312
Gaudi::Functional::details::filter_evtcontext_t< EventContext, In... >::apply
static auto apply(const Algorithm &algo, Handles &handles)
Definition: details.h:497
Gaudi::Functional::details::make_vector_of_handles
Handles make_vector_of_handles(IDataHandleHolder *owner, const std::vector< DataObjID > &init)
Definition: details.h:435
Gaudi::Functional::details::insert_t
Definition: details.h:188
Gaudi::Functional::details::insert_t::c_remove_ptr_t
std::remove_pointer_t< typename Container::value_type > c_remove_ptr_t
Definition: details.h:191
bug_34121.t
t
Definition: bug_34121.py:31
ToolHandle
Definition: ToolHandle.h:132
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, RepeatValues_< KeyValue, N_in > const &inputs, RepeatValues_< KeyValue, N_out > const &outputs)
Definition: details.h:548
Gaudi::Functional::details::vector_of_const_::at
std::enable_if_t<!std::is_pointer_v< X >, ref_t > at(size_type i) const
Definition: details.h:382
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::inputLocationSize
constexpr unsigned int inputLocationSize() const
Definition: details.h:575
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
Gaudi::Functional::details::zip::check_sizes
bool check_sizes(const A &a, const B &b, const C &... c) noexcept
Compare sizes of 3 or more containers.
Definition: details.h:80
Gaudi::Functional::details::invoke_optionally_t::operator()
void operator()(F &&f, Arg &&arg) const
Definition: details.h:150
Gaudi::Functional::details::filter_evtcontext_t< EventContext, In... >::apply
static auto apply(const Algorithm &algo, const EventContext &ctx, Handles &handles)
Definition: details.h:492
Gaudi::Functional::details::vector_of_const_::iterator::m_i
it_t m_i
Definition: details.h:310
std::ostream
STL class.
Gaudi::Functional::details::detail2::InputHandle_t
typename Tr::template InputHandle< T > InputHandle_t
Definition: details.h:400
Gaudi::Functional::details::detail2::DefaultInputHandle
std::conditional_t< is_tool_v< T >, ToolHandle_t< T >, DataObjectReadHandle< T > > DefaultInputHandle
Definition: details.h:409
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, const OArgs &outputs, std::index_sequence< J... >)
Definition: details.h:667
Gaudi::Functional::details::vector_of_const_::value_type
std::conditional_t< is_pointer, ptr_t, val_t > value_type
Definition: details.h:306
Gaudi::Functional::details::vector_of_const_::back
std::enable_if_t< std::is_pointer_v< X >, ptr_t > back() const
Definition: details.h:368
Gaudi::cpp17::detected_or_t
typename details::detector< Default, void, Op, Args... >::type detected_or_t
Definition: detected.h:50
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:90
DataObjectReadHandle
Definition: DataObjectHandle.h:452
AlgSequencer.h
h
Definition: AlgSequencer.py:31
Gaudi::Functional::details::applyPostProcessing
auto applyPostProcessing(const Fun &fun, Container &c) -> decltype(fun.postprocess(c), void())
Definition: details.h:706
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::inputLocationSize
constexpr unsigned int inputLocationSize() const
Definition: details.h:647
Gaudi::Functional::details::put
void put(const OutHandle &out_handle, OptOut &&out)
Definition: details.h:179
Gaudi::Functional::details::filter_evtcontext_t::apply
static auto apply(const Algorithm &algo, Handles &handles)
Definition: details.h:472
Gaudi::Functional::details::details2::is_optional_
decltype(std::declval< T >().has_value(), std::declval< T >().value()) is_optional_
Definition: details.h:125
Gaudi::Functional::details::detail2::OutputHandle_t
typename Tr::template OutputHandle< T > OutputHandle_t
Definition: details.h:398
Gaudi::Functional::details::deref
constexpr struct Gaudi::Functional::details::deref_t deref
Algorithm.h
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple<>, Traits_ >::m_outputs
std::tuple< details::OutputHandle_t< Traits_, Out >... > m_outputs
Definition: details.h:696
Gaudi::Functional::details::vector_of_const_::iterator::operator++
iterator & operator++()
Definition: details.h:332
Gaudi::Functional::details::vector_of_const_::at
std::enable_if_t< std::is_pointer_v< X >, ptr_t > at(size_type i) const
Definition: details.h:386
Gaudi::Functional::details::require_is_optional
std::enable_if_t< is_optional_v< Arg > > require_is_optional
Definition: details.h:135
AnyDataWrapper
Definition: AnyDataWrapper.h:55
Gaudi::Functional::details::vector_of_const_::push_back
void push_back(T &&container)
Definition: details.h:346
std::transform
T transform(T... args)
Gaudi::Functional::details::updateHandleLocation
void updateHandleLocation(DataHandleMixin< Out, In, Tr > &parent, const std::string &prop, const std::string &newLoc)
Definition: details.h:509
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Gaudi::Functional::details::vector_of_const_::iterator::operator==
friend bool operator==(const iterator &lhs, const iterator &rhs)
Definition: details.h:323
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::m_outputs
std::tuple< details::OutputHandle_t< Traits_, Out >... > m_outputs
Definition: details.h:591
Gaudi::Functional::details::vector_of_const_::back
std::enable_if_t<!std::is_pointer_v< X >, ref_t > back() const
Definition: details.h:364
IBinder.h
Gaudi::Functional::details::filter_evtcontext_t
Definition: details.h:465
Gaudi::Functional::details::details2::is_gaudi_range
Definition: details.h:237
Gaudi::Range_
Definition: Range.h:94
std::ostringstream
STL class.
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::isReEntrant
bool isReEntrant() const override
Definition: details.h:650
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple<>, Traits_ >::m_inputs
std::tuple m_inputs
Definition: details.h:610
gaudirun.type
type
Definition: gaudirun.py:160
ThreadLocalContext.h
Gaudi::Functional::details::deref_t::operator()
const In & operator()(const In &in) const
Definition: details.h:217
Gaudi::cpp17::detected_t
typename is_detected< Op, Args... >::type detected_t
Definition: detected.h:46
DataObjectHandle::put
T * put(std::unique_ptr< T > object) const
Register object in transient store.
Definition: DataObjectHandle.h:180
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
Gaudi::Functional::details::zip::verifySizes
decltype(auto) verifySizes(Args &... args)
Verify the data container sizes have the same sizes.
Definition: details.h:86
Gaudi::Functional::details::filter_evtcontext_t::apply
static auto apply(const Algorithm &algo, const EventContext &ctx, Handles &handles)
Definition: details.h:478
Gaudi::Functional::details::details2::get_from_handle
Definition: details.h:261
Gaudi::Functional::details::vector_of_const_::iterator::operator!=
friend bool operator!=(const iterator &lhs, const iterator &rhs)
Definition: details.h:322
gaudirun.args
args
Definition: gaudirun.py:336
Gaudi::Functional::details::vector_of_const_::begin
iterator begin() const
Definition: details.h:350
std::vector::begin
T begin(T... args)
std
STL namespace.
Gaudi::Functional::details::vector_of_const_::iterator::difference_type
typename it_t::difference_type difference_type
Definition: details.h:320
Gaudi::Functional::details::is_optional_v
constexpr bool is_optional_v
Definition: details.h:132
Gaudi::Functional::details::details2::push_back
void push_back(Container &c, const Value &v, std::false_type)
Definition: details.h:256
Gaudi::Functional::details::detail2::is_tool_v
constexpr auto is_tool_v
Definition: details.h:403
Gaudi::Functional::details::details2::deref_if
T & deref_if(T *const t, std::true_type)
Definition: details.h:290
EventContext
Definition: EventContext.h:34
Gaudi::Functional::details::RepeatValues_
decltype(get_values_helper< Value >(std::make_index_sequence< N >())) RepeatValues_
Definition: details.h:162
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::outputLocationSize
constexpr unsigned int outputLocationSize() const
Definition: details.h:585
Gaudi::Functional::Traits::BaseClass_t
Definition: utilities.h:38
Gaudi::Functional::details::vector_of_const_::iterator::value_type
typename it_t::iterator_category value_type
Definition: details.h:317
detected.h
Gaudi::Functional::details::vector_of_const_::iterator::pointer
typename it_t::pointer pointer
Definition: details.h:319
fixtures.reference
Generator[dict, None, None] reference(request, Optional[Path] reference_path)
Definition: fixtures.py:211
Gaudi::Functional::details::vector_of_const_::iterator::it_t
typename ContainerVector::const_iterator it_t
Definition: details.h:309
Gaudi::Functional::details::updateHandleLocations
void updateHandleLocations(DataHandleMixin< Out, In, Tr > &parent, const std::string &prop, const std::vector< std::string > &newLocs)
Definition: details.h:516
Gaudi::Functional::details::insert_t::operator()
auto operator()(Container &c, Value &&v) const -> decltype(c.insert(v))
Definition: details.h:199
Gaudi::Functional::details::vector_of_const_::ref_t
std::add_lvalue_reference_t< val_t > ref_t
Definition: details.h:301
Gaudi::Functional::details::vector_of_const_::iterator::reference
typename it_t::reference reference
Definition: details.h:318
Properties.v
v
Definition: Properties.py:122
Gaudi::Functional::details::DataHandleMixin
Definition: details.h:506
Gaudi::Functional::details::details2::get_from_handle::operator()
auto operator()(const Handle< Gaudi::NamedRange_< I, IT >> &h) -> const In
Definition: details.h:271
Gaudi::Functional::details::vector_of_const_::end
iterator end() const
Definition: details.h:351
std::ostringstream::str
T str(T... args)
std::size_t
std::vector::end
T end(T... args)
Gaudi::Functional::details::BaseClass_t
Gaudi::cpp17::detected_or_t< Base, detail2::BaseClass_t, Tr > BaseClass_t
Definition: details.h:416
Gaudi::Functional::details::zip::printSizes
void printSizes(OS &out, Arg &&arg, Args &&... args)
Print the parameters.
Definition: details.h:60
Gaudi::Functional::details::details2::value_type_of_t
typename T::value_type value_type_of_t
Definition: details.h:128
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple<>, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, std::tuple<>={}, std::tuple<>={})
Definition: details.h:601
Gaudi::Functional::details::vector_of_const_::iterator::ret_t
std::conditional_t< is_pointer, ptr_t, ref_t > ret_t
Definition: details.h:313
Gaudi::Functional::details::insert
constexpr struct Gaudi::Functional::details::insert_t insert
Gaudi::Interface::Bind::IBinder
Definition: IBinder.h:56
DataObjectHandle.h
Gaudi::Functional::details::details2::get_from_handle::operator()
auto operator()(const Handle< I > &h) -> const In
Definition: details.h:280
Gaudi::Functional::details::OutputHandle_t
Gaudi::cpp17::detected_or_t< DataObjectWriteHandle< T >, detail2::OutputHandle_t, Tr, T > OutputHandle_t
Definition: details.h:423
Gaudi::Functional::details::filter_evtcontext
typename filter_evtcontext_t< In... >::type filter_evtcontext
Definition: details.h:503
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *pSvcLocator, RepeatValues_< KeyValue, N_in > const &inputs)
Definition: details.h:631
Gaudi::Functional::details::vector_of_const_::vector_of_const_
vector_of_const_()=default
Gaudi::Functional::details::vector_of_const_::ptr_t
std::add_pointer_t< val_t > ptr_t
Definition: details.h:300
Gaudi::Functional::details::DataHandleMixin< std::tuple< Out... >, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *locator, const KeyValue &input, RepeatValues_< KeyValue, N_out > const &outputs)
Definition: details.h:559
Gaudi::Functional::details::details2::get_from_handle::operator()
auto operator()(const Handle< std::optional< Gaudi::NamedRange_< I, IT >>> &h) -> const In
Definition: details.h:275
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: details.h:97
GaudiUtils::details::ostream_joiner
Stream & ostream_joiner(Stream &os, Iterator first, Iterator last, Separator sep, OutputElement output=OutputElement{})
Definition: SerializeSTL.h:75
Gaudi::Functional::details::DataHandleMixin< std::tuple<>, std::tuple< In... >, Traits_ >::DataHandleMixin
DataHandleMixin(std::string name, ISvcLocator *locator, const KeyValue &input)
Definition: details.h:636
PrepareBase.out
out
Definition: PrepareBase.py:20
Gaudi::Functional::details::getKey
auto getKey(const Handle &h) -> decltype(h.objKey())
Definition: details.h:458
Gaudi::Functional::details::remove_optional_t
std::conditional_t< is_optional_v< T >, Gaudi::cpp17::detected_t< details2::value_type_of_t, T >, T > remove_optional_t
Definition: details.h:142
Gaudi::Functional::details::vector_of_const_::is_null
bool is_null(size_type i) const
Definition: details.h:390
Gaudi::Functional::details::vector_of_const_::size
size_type size() const
Definition: details.h:352