Loading [MathJax]/extensions/MathMenu.js
The Gaudi Framework  v29r5 (37229091)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
FunctionalDetails.h
Go to the documentation of this file.
1 #ifndef FUNCTIONAL_DETAILS_H
2 #define FUNCTIONAL_DETAILS_H
3 
4 #include <cassert>
5 #include <sstream>
6 #include <stdexcept>
7 #include <type_traits>
8 
9 // TODO: fwd declare instead?
11 #include "GaudiKernel/Algorithm.h"
15 
16 // Boost
17 #include "boost/optional.hpp"
18 
19 // Range V3
20 #include <range/v3/view/const.hpp>
21 #include <range/v3/view/zip.hpp>
22 
23 namespace Gaudi
24 {
25  namespace Functional
26  {
27  namespace details
28  {
29 
30  // CRJ : Stuff for zipping
31  namespace zip
32  {
33 
35  template <typename OS, typename Arg>
36  void printSizes( OS& out, Arg&& arg )
37  {
38  out << "SizeOf'" << System::typeinfoName( typeid( Arg ) ) << "'=" << std::forward<Arg>( arg ).size();
39  }
40 
42  template <typename OS, typename Arg, typename... Args>
43  void printSizes( OS& out, Arg&& arg, Args&&... args )
44  {
45  printSizes( out, arg );
46  out << ", ";
47  printSizes( out, args... );
48  }
49 
51  template <typename A>
52  inline bool check_sizes( const A& ) noexcept
53  {
54  return true;
55  }
56 
58  template <typename A, typename B>
59  inline bool check_sizes( const A& a, const B& b ) noexcept
60  {
61  return a.size() == b.size();
62  }
63 
65  template <typename A, typename B, typename... C>
66  inline bool check_sizes( const A& a, const B& b, const C&... c ) noexcept
67  {
68  return ( check_sizes( a, b ) && check_sizes( b, c... ) );
69  }
70 
72  template <typename... Args>
73  inline decltype( auto ) verifySizes( Args&... args )
74  {
75  if ( UNLIKELY( !check_sizes( args... ) ) ) {
76  std::ostringstream mess;
77  mess << "Zipped containers have different sizes : ";
78  printSizes( mess, args... );
79  throw GaudiException( mess.str(), "Gaudi::Functional::details::zip::verifySizes", StatusCode::FAILURE );
80  }
81  }
82 
84  template <typename... Args>
85  inline decltype( auto ) range( Args&&... args )
86  {
87 #ifndef NDEBUG
88  verifySizes( args... );
89 #endif
90  return ranges::view::zip( std::forward<Args>( args )... );
91  }
92 
94  template <typename... Args>
95  inline decltype( auto ) const_range( Args&&... args )
96  {
97 #ifndef NDEBUG
98  verifySizes( args... );
99 #endif
100  return ranges::view::const_( ranges::view::zip( std::forward<Args>( args )... ) );
101  }
102  }
103 
104 #if __cplusplus < 201703L
105  // implementation of C++17 std::as_const, see http://en.cppreference.com/w/cpp/utility/as_const
106  template <typename T>
107  constexpr typename std::add_const<T>::type& as_const( T& t ) noexcept
108  {
109  return t;
110  }
111 
112  template <typename T>
113  void as_const( T&& t ) = delete;
114 #else
115  using std::as_const;
116 #endif
117 
119  template <typename Out1, typename Out2,
121  Out1* put( DataObjectHandle<Out1>& out_handle, Out2&& out )
122  {
123  return out_handle.put( new Out1( std::forward<Out2>( out ) ) );
124  }
125 
126  template <typename Out1, typename Out2,
128  void put( AnyDataHandle<Out1>& out_handle, Out2&& out )
129  {
130  out_handle.put( std::forward<Out2>( out ) );
131  }
132 
133  // optional put
134  template <typename OutHandle, typename Out>
135  void put( OutHandle& out_handle, boost::optional<Out>&& out )
136  {
137  if ( out ) put( out_handle, std::move( *out ) );
138  }
140  // adapt to differences between eg. std::vector (which has push_back) and KeyedContainer (which has insert)
141  // adapt to getting a T, and a container wanting T* by doing new T{ std::move(out) }
142  // adapt to getting a boost::optional<T>
143 
144  constexpr struct insert_t {
145  // for Container<T*>, return T
146  template <typename Container>
148 
149  template <typename Container, typename Value>
150  auto operator()( Container& c, Value&& v ) const -> decltype( c.push_back( v ) )
151  {
152  return c.push_back( std::forward<Value>( v ) );
153  }
154 
155  template <typename Container, typename Value>
156  auto operator()( Container& c, Value&& v ) const -> decltype( c.insert( v ) )
157  {
158  return c.insert( std::forward<Value>( v ) );
159  }
160 
161  // Container<T*> with T&& as argument
162  template <typename Container,
164  auto operator()( Container& c, c_remove_ptr_t<Container>&& v ) const
165  {
166  return operator()( c, new c_remove_ptr_t<Container>{std::move( v )} );
167  }
168 
169  template <typename Container, typename Value>
170  void operator()( Container& c, boost::optional<Value>&& v ) const
171  {
172  if ( v ) operator()( c, std::move( *v ) );
173  }
174  } insert{};
175 
177 
178  constexpr struct deref_t {
179  template <typename In, typename = typename std::enable_if<!std::is_pointer<In>::value>::type>
180  In& operator()( In& in ) const
181  {
182  return in;
183  }
184 
185  template <typename In>
186  In& operator()( In* in ) const
187  {
188  assert( in != nullptr );
189  return *in;
190  }
191  } deref{};
192 
194 
195  namespace details2
196  {
197  template <typename T>
199  typedef T type;
200  };
201  template <typename T>
202  struct remove_optional<boost::optional<T>> {
203  typedef T type;
204  };
205  // template< typename T > struct remove_optional< std::optional<T> > {typedef T type;};
206  }
207  template <typename T>
209  template <typename T>
211  };
212  template <typename T>
213  struct is_optional<boost::optional<T>> : std::true_type {
214  };
215  // C++17: template <typename T> constexpr bool is_optional_v = is_optional<T>::value;
216 
218  // if Container is a pointer, then we're optional items
219  namespace details2
220  {
221  template <typename Container, typename Value>
222  void push_back( Container& c, const Value& v, std::true_type )
223  {
224  c.push_back( v );
225  }
226  template <typename Container, typename Value>
227  void push_back( Container& c, const Value& v, std::false_type )
228  {
229  c.push_back( &v );
230  }
231 
232  template <typename In>
234  template <template <typename> class Handle, typename I,
236  auto operator()( const Handle<I>& h ) -> const In&
237  {
238  return *h.get();
239  }
240  template <template <typename> class Handle, typename I,
242  auto operator()( const Handle<I>& h ) -> const In
243  {
244  return h.getIfExists();
245  } // In is-a pointer
246  };
247 
248  template <typename T>
249  T* deref_if( T* const t, std::false_type )
250  {
251  return t;
252  }
253  template <typename T>
254  T& deref_if( T* const t, std::true_type )
255  {
256  return *t;
257  }
258  }
259 
260  template <typename Container>
262  {
264  using val_t = std::add_const_t<std::remove_pointer_t<Container>>;
265  using ptr_t = std::add_pointer_t<val_t>;
266  using ref_t = std::add_lvalue_reference_t<val_t>;
269 
270  public:
271  using value_type = std::conditional_t<is_optional, ptr_t, val_t>;
272  using size_type = typename ContainerVector::size_type;
273  class iterator
274  {
275  typename ContainerVector::const_iterator m_i;
276  friend class vector_of_const_;
277  iterator( typename ContainerVector::const_iterator iter ) : m_i( iter ) {}
278  using ret_t = std::conditional_t<is_optional, ptr_t, ref_t>;
279 
280  public:
281  friend bool operator!=( const iterator& lhs, const iterator& rhs ) { return lhs.m_i != rhs.m_i; }
284  {
285  ++m_i;
286  return *this;
287  }
289  {
290  --m_i;
291  return *this;
292  }
293  bool is_null() const { return !*m_i; }
294  explicit operator bool() const { return !is_null(); }
295  };
296  vector_of_const_() = default;
297  void reserve( size_type size ) { m_containers.reserve( size ); }
298  template <typename T> // , typename = std::is_convertible<T,std::conditional_t<is_optional,ptr_t,val_t>>
299  void push_back( T&& container )
300  {
301  details2::push_back( m_containers, std::forward<T>( container ),
303  } // note: does not copy its argument, so we're not really a container...
304  iterator begin() const { return m_containers.begin(); }
305  iterator end() const { return m_containers.end(); }
306  size_type size() const { return m_containers.size(); }
307  const Container& operator[]( size_type i ) const { return *m_containers[i]; }
308  const Container& at( size_type i ) const
309  {
310  if ( i >= size() ) throw std::out_of_range{"vector_of_const_::at"};
311  return *m_containers[i];
312  }
313  bool is_null( size_type i ) const { return !m_containers[i]; }
314  };
315 
317 
318  // detect whether a traits class defines the requested type,
319  // if so, use it,
320  // otherwise use the default
321  //
322  // based on http://en.cppreference.com/w/cpp/experimental/is_detected
323  // and the libstdc++ source, specificially libstdc++-v3/include/std/type_traits
324 
325  namespace detail2
326  {
327 #ifdef HAVE_CPP17
328  template <typename...>
329  using void_t = void;
330 #else
331  template <typename...>
332  struct void_t_ {
333  using type = void;
334  };
335  template <typename... T>
336  using void_t = typename void_t_<T...>::type;
337 #endif
338 
340  template <typename Default, typename AlwaysVoid, template <typename...> class Op, typename... Args>
341  struct detector {
342  using type = Default;
343  };
344 
346  template <typename Default, template <typename...> class Op, typename... Args>
347  struct detector<Default, void_t<Op<Args...>>, Op, Args...> {
348  using type = Op<Args...>;
349  };
350  }
351 
352  // Op<Args...> if that is a valid type, otherwise Default.
353  template <typename Default, template <typename...> class Op, typename... Args>
354  using detected_or_t = typename detail2::detector<Default, void, Op, Args...>::type;
355 
356  // Op<Args...> if that is a valid type, otherwise Default<Args...>.
357  template <template <typename...> class Default, template <typename...> class Op, typename Tr, typename T>
359 
361  namespace detail2
362  { // utilities for detected_or_t{,_} usage
363 
364  template <typename Tr>
365  using BaseClass_ = typename Tr::BaseClass;
366  template <typename Tr, typename T>
369  template <typename Tr, typename T>
370  using OutputHandle_ = typename Tr::template OutputHandle<T>;
371  template <typename Tr, typename T>
372  using InputHandle_ = typename Tr::template InputHandle<T>;
373  }
374 
375  // check whether Traits::BaseClass is a valid type,
376  // if so, define BaseClass_t<Traits> as being Traits::BaseClass
377  // else define as being GaudiAlgorithm
378  template <typename Tr>
380 
381  // check whether Traits::{Input,Output}Handle<T> is a valid type,
382  // if so, define {Input,Output}Handle_t<Traits,T> as being Traits::{Input,Output}Handle<T>
383  // else define as being DataObjectHandle<T> if T derives from DataObject, else
384  // AnyDataHandle<T>
385  template <typename Tr, typename T>
387  template <typename Tr, typename T>
389 
391 
392  namespace details2
393  {
394  template <std::size_t N, typename Tuple>
396 
397  template <typename Tuple, typename KeyValues, std::size_t... I>
399  std::index_sequence<I...> )
400  {
401  return std::make_tuple( element_t<I, Tuple>{std::get<I>( initvalue ).second, m, o}... );
402  }
403  template <typename KeyValues, typename Properties, std::size_t... I>
404  void declare_tuple_of_properties_helper( Algorithm& owner, const KeyValues& inputs, Properties& props,
405  std::index_sequence<I...> )
406  {
408  ( owner.declareProperty( std::get<I>( inputs ).first, std::get<I>( props ) ), 0 )...};
409  }
410  }
411 
412  template <typename Tuple, typename KeyValues>
414  {
415  return details2::make_tuple_of_handles_helper<Tuple>(
416  owner, initvalue, mode, std::make_index_sequence<std::tuple_size<Tuple>::value>{} );
417  }
418 
419  template <typename KeyValues, typename Properties>
421  {
422  constexpr auto N = std::tuple_size<KeyValues>::value;
423  static_assert( N == std::tuple_size<Properties>::value, "Inconsistent lengths" );
424  details2::declare_tuple_of_properties_helper( owner, inputs, props, std::make_index_sequence<N>{} );
425  }
426 
427  template <typename Handles>
430  {
431  Handles handles;
432  handles.reserve( init.size() );
433  std::transform( init.begin(), init.end(), std::back_inserter( handles ),
434  [&]( const std::string& loc ) -> typename Handles::value_type {
435  return {loc, mode, owner};
436  } );
437  return handles;
438  }
439 
441 
442  template <typename OutputSpec, typename InputSpec, typename Traits_>
444 
445  template <typename... Out, typename... In, typename Traits_>
446  class DataHandleMixin<std::tuple<Out...>, std::tuple<In...>, Traits_> : public BaseClass_t<Traits_>
447  {
448  static_assert( std::is_base_of<Algorithm, BaseClass_t<Traits_>>::value,
449  "BaseClass must inherit from Algorithm" );
450 
451  public:
453  constexpr static std::size_t N_in = sizeof...( In );
454  constexpr static std::size_t N_out = sizeof...( Out );
455 
456  // generic constructor: N -> M
458  const std::array<KeyValue, N_out>& outputs )
459  : BaseClass_t<Traits_>( name, pSvcLocator )
460  , m_inputs( make_tuple_of_handles<decltype( m_inputs )>( this, inputs, Gaudi::DataHandle::Reader ) )
461  , m_outputs( make_tuple_of_handles<decltype( m_outputs )>( this, outputs, Gaudi::DataHandle::Writer ) )
462  {
463  declare_tuple_of_properties( *this, inputs, m_inputs );
464  declare_tuple_of_properties( *this, outputs, m_outputs );
465  // make sure this algorithm is seen as reentrant by Gaudi
466  BaseClass_t<Traits_>::setProperty( "Cardinality", 0 );
467  }
468 
469  // special cases: forward to the generic case...
470  // 1 -> 1
471  DataHandleMixin( const std::string& name, ISvcLocator* locator, const KeyValue& input, const KeyValue& output )
472  : DataHandleMixin( name, locator, std::array<KeyValue, 1>{input}, std::array<KeyValue, 1>{output} )
473  {
474  }
475  // 1 -> N
476  DataHandleMixin( const std::string& name, ISvcLocator* locator, const KeyValue& input,
477  const std::array<KeyValue, N_out>& outputs )
478  : DataHandleMixin( name, locator, std::array<KeyValue, 1>{input}, outputs )
479  {
480  }
481  // N -> 1
483  const KeyValue& output )
484  : DataHandleMixin( name, locator, inputs, std::array<KeyValue, 1>{output} )
485  {
486  }
487 
488  template <std::size_t N = 0>
489  const std::string& inputLocation() const
490  {
491  return std::get<N>( m_inputs ).objKey();
492  }
493  unsigned int inputLocationSize() const { return std::tuple_size<decltype( m_inputs )>::value; }
494 
495  template <std::size_t N = 0>
497  {
498  return std::get<N>( m_outputs ).objKey();
499  }
500  unsigned int outputLocationSize() const { return std::tuple_size<decltype( m_outputs )>::value; }
501 
502  protected:
505  };
506 
507  template <typename... In, typename Traits_>
508  class DataHandleMixin<void, std::tuple<In...>, Traits_> : public BaseClass_t<Traits_>
509  {
510  static_assert( std::is_base_of<Algorithm, BaseClass_t<Traits_>>::value,
511  "BaseClass must inherit from Algorithm" );
512 
513  public:
515  constexpr static std::size_t N_in = sizeof...( In );
516 
517  // generic constructor: N -> 0
519  : BaseClass_t<Traits_>( name, pSvcLocator )
520  , m_inputs( make_tuple_of_handles<decltype( m_inputs )>( this, inputs, Gaudi::DataHandle::Reader ) )
521  {
522  declare_tuple_of_properties( *this, inputs, m_inputs );
523  // make sure this algorithm is seen as reentrant by Gaudi
524  BaseClass_t<Traits_>::setProperty( "Cardinality", 0 );
525  }
526 
527  // special cases: forward to the generic case...
528  // 1 -> 0
529  DataHandleMixin( const std::string& name, ISvcLocator* locator, const KeyValue& input )
530  : DataHandleMixin( name, locator, std::array<KeyValue, 1>{input} )
531  {
532  }
533 
534  template <std::size_t N = 0>
535  const std::string& inputLocation() const
536  {
537  return std::get<N>( m_inputs ).objKey();
538  }
539  unsigned int inputLocationSize() const { return std::tuple_size<decltype( m_inputs )>::value; }
540 
541  protected:
543  };
544 
545  template <typename... Out, typename Traits_>
546  class DataHandleMixin<std::tuple<Out...>, void, Traits_> : public BaseClass_t<Traits_>
547  {
548  static_assert( std::is_base_of<Algorithm, BaseClass_t<Traits_>>::value,
549  "BaseClass must inherit from Algorithm" );
550 
551  public:
553  constexpr static std::size_t N_out = sizeof...( Out );
554 
555  // generic constructor: 0 -> N
557  : BaseClass_t<Traits_>( name, pSvcLocator )
558  , m_outputs( make_tuple_of_handles<decltype( m_outputs )>( this, outputs, Gaudi::DataHandle::Writer ) )
559  {
560  declare_tuple_of_properties( *this, outputs, m_outputs );
561  // make sure this algorithm is seen as reentrant by Gaudi
562  BaseClass_t<Traits_>::setProperty( "Cardinality", 0 );
563  }
564 
565  // 0 -> 1
567  : DataHandleMixin( name, locator, std::array<KeyValue, 1>{output} )
568  {
569  }
570 
571  template <std::size_t N = 0>
573  {
574  return std::get<N>( m_outputs ).objKey();
575  }
576  unsigned int outputLocationSize() const { return std::tuple_size<decltype( m_outputs )>::value; }
577 
578  protected:
580  };
581 
583  template <typename Fun, typename Container, typename... Args>
584  constexpr void applyPostProcessing( const Fun&, Container&, Args... )
585  {
586  static_assert( sizeof...( Args ) == 0, "Args should not be used!" );
587  }
588 
589  template <typename Fun, typename Container>
590  auto applyPostProcessing( const Fun& fun, Container& c ) -> decltype( fun.postprocess( c ), void() )
591  {
592  fun.postprocess( c );
593  }
594 
596  }
597  }
598 }
599 
600 #endif
DataHandleMixin(const std::string &name, ISvcLocator *pSvcLocator, const std::array< KeyValue, N_out > &outputs)
DataHandleMixin(const std::string &name, ISvcLocator *pSvcLocator, const std::array< KeyValue, N_in > &inputs)
auto operator()(Container &c, Value &&v) const -> decltype(c.insert(v))
StatusCode setProperty(IProperty *component, const std::string &name, const TYPE &value, const std::string &doc)
simple function to set the property of the given object from the value
Definition: Property.h:1173
Tuple make_tuple_of_handles_helper(IDataHandleHolder *o, const KeyValues &initvalue, Gaudi::DataHandle::Mode m, std::index_sequence< I... >)
#define UNLIKELY(x)
Definition: Kernel.h:128
constexpr std::add_const< T >::type & as_const(T &t) noexcept
detected_or_t_< detail2::defaultHandle_, detail2::OutputHandle_, Tr, T > OutputHandle_t
Define general base for Gaudi exception.
DataHandleMixin(const std::string &name, ISvcLocator *locator, const std::array< KeyValue, N_in > &inputs, const KeyValue &output)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Handles make_vector_of_handles(IDataHandleHolder *owner, const std::vector< std::string > &init, Gaudi::DataHandle::Mode mode)
The namespace threadpool contains a thread pool and related utility classes.
Definition: iter_pos.hpp:13
friend bool operator!=(const iterator &lhs, const iterator &rhs)
void declare_tuple_of_properties(Algorithm &owner, const KeyValues &inputs, Properties &props)
void as_const(T &&t)=delete
detected_or_t< GaudiAlgorithm, detail2::BaseClass_, Tr > BaseClass_t
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:329
void declare_tuple_of_properties_helper(Algorithm &owner, const KeyValues &inputs, Properties &props, std::index_sequence< I... >)
auto operator()(Container &c, c_remove_ptr_t< Container > &&v) const
void printSizes(OS &out, Arg &&arg)
Print the parameter.
constexpr struct Gaudi::Functional::details::insert_t insert
DataHandleMixin(const std::string &name, ISvcLocator *pSvcLocator, const std::array< KeyValue, N_in > &inputs, const std::array< KeyValue, N_out > &outputs)
typename Tr::template InputHandle< T > InputHandle_
Header file for class GaudiAlgorithm.
DataHandleMixin(const std::string &name, ISvcLocator *locator, const KeyValue &input, const KeyValue &output)
std::add_const_t< std::remove_pointer_t< Container >> val_t
typename std::remove_pointer< typename Container::value_type >::type c_remove_ptr_t
STL namespace.
class MergingTransformer< Out(const vector_of_const_< In > void
T make_tuple(T...args)
auto operator()(Container &c, Value &&v) const -> decltype(c.push_back(v))
T end(T...args)
void push_back(Container &c, const Value &v, std::true_type)
std::vector< Gaudi::Details::PropertyBase * > Properties
Definition: PropertyMgr.h:134
iterator(typename ContainerVector::const_iterator iter)
std::add_lvalue_reference_t< val_t > ref_t
T * deref_if(T *const t, std::false_type)
typename void_t_< T... >::type void_t
const Container & operator[](size_type i) const
constexpr struct Gaudi::Functional::details::deref_t deref
const T * put(T &&object)
Register object in transient store.
Definition: AnyDataHandle.h:41
constexpr double second
STL class.
std::conditional_t< is_optional, ptr_t, val_t > value_type
DataObjectHandle.h GaudiKernel/DataObjectHandle.h.
Definition: AlgTool.h:27
Implementation of the detection idiom (negative case).
int N
Definition: IOTest.py:101
constexpr void applyPostProcessing(const Fun &, Container &, Args...)
DataHandleMixin(const std::string &name, ISvcLocator *locator, const KeyValue &input, const std::array< KeyValue, N_out > &outputs)
constexpr double m
Definition: SystemOfUnits.h:94
auto operator()(const Handle< I > &h) -> const In &
T * put(T *object)
Register object in transient store.
typename details2::remove_optional< T >::type remove_optional_t
auto operator()(const Handle< I > &h) -> const In
DataHandleMixin(const std::string &name, ISvcLocator *locator, const KeyValue &output)
decltype(auto) range(Args &&...args)
Zips multiple containers together to form a single range.
Tuple make_tuple_of_handles(IDataHandleHolder *owner, const KeyValues &initvalue, Gaudi::DataHandle::Mode mode)
T move(T...args)
typename std::conditional< std::is_base_of< DataObject, T >::value, DataObjectHandle< T >, AnyDataHandle< T >>::type defaultHandle_
decltype(auto) verifySizes(Args &...args)
Verify the data container sizes have the same sizes.
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:79
T size(T...args)
std::vector< InputHandle_t< In > > m_inputs
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
std::conditional_t< is_optional, ptr_t, ref_t > ret_t
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
detected_or_t< Default< Tr, T >, Op, Tr, T > detected_or_t_
void operator()(Container &c, boost::optional< Value > &&v) const
T begin(T...args)
bool check_sizes(const A &) noexcept
Resolve case there is only one container in the range.
T back_inserter(T...args)
const Container & at(size_type i) const
typename std::tuple_element< N, Tuple >::type element_t
std::tuple< details::OutputHandle_t< Traits_, Out >... > m_outputs
double fun(const std::vector< double > &x)
Definition: PFuncTest.cpp:26
STL class.
DataHandleMixin(const std::string &name, ISvcLocator *locator, const KeyValue &input)
typename Tr::template OutputHandle< T > OutputHandle_
struct[[deprecated("use MergingTransformer instead")]] Traits_
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
Definition: Algorithm.h:372
T transform(T...args)
detected_or_t_< detail2::defaultHandle_, detail2::InputHandle_, Tr, T > InputHandle_t
decltype(auto) const_range(Args &&...args)
Zips multiple containers together to form a single const range.
T & deref_if(T *const t, std::true_type)
Helper functions to set/get the application return code.
Definition: __init__.py:1
def Reader(readerType, filename, qacross, qToEngine)
Out1 * put(DataObjectHandle< Out1 > &out_handle, Out2 &&out)
void push_back(Container &c, const Value &v, std::false_type)
typename detail2::detector< Default, void, Op, Args... >::type detected_or_t
std::pair< std::string, std::vector< std::string >> KeyValues
T reserve(T...args)
typename ContainerVector::size_type size_type