All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
util::details Namespace Reference

Classes

struct  TupleElementOp
 
class  ProvenanceGetter
 
class  ArtHandleTracker
 Tracks art handle objects. More...
 
class  IndentAdder
 Stream wapper. More...
 
struct  collection_value_type_impl_pointer
 
struct  collection_value_type_impl_pointer< T * >
 
struct  collection_value_type_impl_pointer< T[]>
 
struct  collection_value_type_impl_pointer< T[N]>
 
struct  collection_value_type_impl_unique_ptr
 
struct  collection_value_type_impl
 
struct  collection_value_type_impl< Coll, std::enable_if_t< std::is_pointer_v< std::decay_t< Coll > > > >
 
struct  collection_value_type_impl< Coll, std::enable_if_t< util::is_unique_ptr_v< std::decay_t< Coll > > > >
 
struct  collection_value_access_type_impl
 
struct  collection_value_access_type_impl< T *, void >
 
struct  collection_value_access_type_impl< Ptr, std::enable_if_t< util::is_unique_ptr_v< std::decay_t< Ptr > > > >
 
struct  collection_value_constant_access_type_impl
 
struct  collection_value_constant_access_type_impl< T *, void >
 
struct  collection_value_constant_access_type_impl< Ptr, std::enable_if_t< util::is_unique_ptr_v< std::decay_t< Ptr > > > >
 
struct  make_collection_reference_impl
 
struct  make_collection_reference_impl< Coll, std::enable_if_t< util::is_reference_wrapper_v< Coll > > >
 
struct  make_collection_reference_impl< Coll, std::enable_if_t< util::is_unique_ptr_v< Coll > > >
 
struct  make_collection_reference_impl< Ptr, std::enable_if_t< std::is_pointer_v< std::decay_t< Ptr > > > >
 
struct  collection_from_reference_impl
 
struct  collection_from_reference_impl< CollRef, std::enable_if_t< util::is_reference_wrapper_v< CollRef > > >
 
struct  collection_from_reference_impl< CollRef, std::enable_if_t< util::is_unique_ptr_v< CollRef > > >
 
struct  collection_from_reference_impl< T * >
 
struct  collection_from_reference_impl< T[]>
 
struct  collection_from_reference_impl< T[N]>
 
class  infinite_endcount_iterator
 Class used as end iterator (sentinel) for an infinite loop. More...
 
struct  get_elements_impl
 
struct  ClassNameStaticDumper
 Implementation detail of staticDumpClassName(). More...
 
struct  find_type_impl
 
struct  find_type_impl< Index, Skip, T, Type, Others...>
 
struct  find_type_impl< Index, Skip, T >
 
struct  is_character_type_impl
 
struct  is_string_type_impl
 
struct  is_string_type_impl< T, std::enable_if_t< is_character_type_impl< typename T::value_type >::value > >
 
struct  is_string_type_impl< T, std::enable_if_t< std::is_pointer_v< std::decay_t< T > > &&is_character_type_impl< std::remove_pointer_t< std::decay_t< T > > >::value > >
 
struct  is_string_type_impl< T, std::enable_if_t< std::is_array_v< std::decay_t< T > > &&is_character_type_impl< std::remove_extent_t< std::decay_t< T > > >::value > >
 
struct  is_basic_string_type_impl
 
struct  is_basic_string_type_impl< std::basic_string< Args...> >
 
struct  is_basic_string_view_type_impl
 
struct  is_basic_string_view_type_impl< std::basic_string_view< Args...> >
 
struct  with_const_as_impl
 
struct  with_const_as_impl< Base, Key, std::enable_if_t< std::is_const_v< Key > > >
 
struct  with_const_as_dispatch_ref
 
struct  with_const_as_dispatch_ref< Base, Key, std::enable_if_t< std::is_lvalue_reference_v< Base > > >
 
struct  with_const_as_dispatch_ref< Base, Key, std::enable_if_t< std::is_rvalue_reference_v< Base > > >
 
struct  with_const_as_dispatch_keyref
 
struct  with_const_as_dispatcher
 
struct  is_instance_of_impl
 
struct  is_instance_of_impl< Template, Template< Args...> >
 
struct  strip_referenceness_type_impl
 
struct  strip_referenceness_type_impl_wrapref
 
struct  strip_referenceness_type_impl_wrapref< T, std::enable_if_t< util::is_reference_wrapper_v< std::remove_cv_t< T > > > >
 
struct  strip_referenceness_type_impl_ref
 
struct  strip_referenceness_type_impl_ref< T & >
 
struct  strip_referenceness_type_impl_ref< T && >
 
struct  referenced_address_impl
 
struct  referenced_address_impl< T, std::enable_if_t< util::is_reference_wrapper_v< T > > >
 
struct  lvalue_reference_into_wrapper_type_impl_final
 
struct  lvalue_reference_into_wrapper_type_impl_final< T & >
 
struct  lvalue_reference_into_wrapper_type_impl_wrapper
 
struct  lvalue_reference_into_wrapper_type_impl_wrapper< T, std::enable_if_t< util::is_reference_wrapper_v< T > > >
 
struct  lvalue_reference_into_wrapper_type_impl
 
struct  MoveFromPointersImpl
 
struct  PointerVectorMaker
 
struct  PointerVectorMaker< Coll, std::enable_if_t< util::is_unique_ptr_v< typename Coll::value_type > > >
 
struct  MoveFromPointersImpl< std::vector< Data >, PtrColl >
 
struct  ToStringImpl
 
struct  ToStringImpl< T, std::enable_if_t< util::is_basic_string_type_v< T > > >
 
struct  ToStringImpl< T, std::enable_if_t< util::is_basic_string_view_type_v< T > > >
 
struct  values_impl
 
struct  map_values_impl
 
struct  values_impl< std::map< Key, Value, Args...> >
 
struct  values_impl< std::unordered_map< Key, Value, Args...> >
 
class  zip_iterator
 
class  zip_iterator< Lead >
 
struct  AssnsNodeGetter
 
struct  AssnsNodeGetter< 0U, L, R, D >
 
struct  AssnsNodeGetter< 1U, L, R, D >
 
struct  AssnsNodeGetter< 2U, L, R, D >
 
class  FilterRangeForStruct
 
class  GridContainerIndicesBase
 Index manager for a container of data arranged on a DIMS-dimension grid. More...
 
class  GridContainerBase
 Base class for a container of data arranged on a grid. More...
 
class  RangeForWrapperIterator
 
struct  RangeForWrapperTraits
 Class defining types and traits for RangeForWrapperBox. More...
 
class  RangeForWrapperBox
 Class offering begin/end iterators of the same type out of a range of iterators of different types. More...
 
struct  SameIterTag
 Tag for internal use. More...
 
struct  DiffIterTag
 Tag for internal use. More...
 
struct  WrapRangeForDispatcher
 
struct  WrapRangeForDispatcher< BaseRange, true >
 
struct  WrapRangeForDispatcher< BaseRange, false >
 
struct  is_type
 
struct  ExtractTensorDimension
 
struct  ExtractTensorDimension< RANK, 0U >
 
struct  count_type_in_list_impl
 
struct  type_is_in_impl
 
struct  has_duplicate_types_unwrapper
 
struct  TagExtractorImpl
 
struct  count_type_in_list_impl< Target, First, Others...>
 
struct  count_type_in_list_impl< Target, Target, Others...>
 
struct  type_is_in_impl< Target, First, Others...>
 
struct  type_is_in_impl< Target, Target, Others...>
 
struct  extract_to_tuple_type_impl
 Implementation for extract_to_tuple_type. More...
 
struct  extract_to_tuple_type_impl< TargetClass, Extractor, Tuple, N, N, T...>
 End-of-recursion specialization: packs all types already extracted into the target type. More...
 
struct  extract_to_tuple_type_impl_simple
 
struct  index_of_extracted_type_impl
 
struct  index_of_extracted_type_checked
 
struct  index_of_extracted_type_checked< Extractor, Target, N, N, Tuple >
 
struct  index_of_extracted_type_impl< Extractor, Target, I, Target, Tuple >
 
struct  index_of_extracted_type_checked_after
 
struct  index_of_extracted_type_checked_after< Extractor, Target, N, N, Tuple >
 
struct  index_of_type_base
 
struct  index_of_type_helper
 
struct  has_duplicate_types_impl
 
struct  has_duplicate_types_impl< Tuple, First, Others...>
 
struct  has_duplicate_types_unwrapper< std::tuple< T...> >
 
struct  count_tags_in_list
 
struct  count_tags_in_tuple
 
struct  count_tags_in_tuple< Extractor, Target, std::tuple< Tags...> >
 
struct  TagExtractorImpl< Tagged, std::enable_if_t< always_true_type< typename std::remove_reference_t< Tagged >::tag >::value > >
 
struct  ContainerTraits
 
class  ContainerStorage
 
struct  ContainerStorageBase
 
class  ContainerStorage< Cont, std::enable_if_t< util::is_reference_wrapper_v< Cont > > >
 
struct  ContainerTraitsImpl
 
struct  ContainerTraitsImpl< T * >
 
struct  CaseInsensitiveComparer
 
struct  SorterFrom
 
struct  ValueToString
 
class  MultipleChoiceSelectionOption_t
 Class representing one of the available options to be selected. More...
 
struct  ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > >
 
struct  ValueToString< Value, std::enable_if_t< std::is_convertible_v< Value, std::string >||std::is_constructible_v< std::string, Value > > >
 
struct  ValueToString< Value, std::void_t< decltype(std::to_string(std::declval< Value >()))> >
 

Typedefs

template<typename T >
using DataProductPointerMap_t = std::map< T const *, art::Ptr< T >>
 

Functions

template<typename T >
constexpr bool isPowerOfTwo (T value)
 Returns whether the integral type value is a power of 2. More...
 
template<std::size_t I, typename KeySort >
TupleElementOp< I, KeySort > makeTupleElementOp (KeySort keySort)
 
template<typename Handle >
std::string productClassOf (Handle const &handle)
 use candy More...
 
template<typename Handle >
std::type_info const * productTypeOf (Handle const &handle)
 
template<typename Handle >
art::InputTag inputTagOf (Handle const &handle)
 
template<typename T >
bool operator!= (infinite_endcount_iterator< T > const &, count_iterator< T > const &)
 Never admit a infinite_endcount_iterator to be equal to anything else. More...
 
template<typename T >
bool operator!= (count_iterator< T > const &, infinite_endcount_iterator< T > const &)
 
template<typename T >
bool operator== (infinite_endcount_iterator< T > const &, count_iterator< T > const &)
 
template<typename T >
bool operator== (count_iterator< T > const &, infinite_endcount_iterator< T > const &)
 
template<typename Coll , typename PtrColl >
void moveFromPointersImplBase (Coll &dest, PtrColl &src)
 
template<std::size_t Lead, typename... Iterables>
auto make_zip_begin_iterator (Iterables &&...iterables)
 
template<std::size_t Lead, typename... Iterables>
auto make_zip_end_iterator (Iterables &&...iterables)
 
template<typename T >
T & NullRef ()
 
template<typename Choices >
std::ostream & operator<< (std::ostream &out, MultipleChoiceSelectionOption_t< Choices > const &option)
 Prints an option into a stream. More...
 
Option comparison operators

— BEGIN – Comparison operators -------------------------------------—

template<typename Choices >
bool operator== (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value)
 Returns whether option has the specified value. More...
 
template<typename Choices >
bool operator== (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option)
 
template<typename Choices >
bool operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value)
 Returns whether option does not have the specified value. More...
 
template<typename Choices >
bool operator!= (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option)
 
template<typename Choices >
bool operator== (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label)
 Returns whether option has the specified name or alias. More...
 
template<typename Choices >
bool operator== (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option)
 
template<typename Choices >
bool operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label)
 Returns whether option does not have the specified name or alias. More...
 
template<typename Choices >
bool operator!= (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option)
 

Variables

template<typename Iter >
constexpr bool is_random_access_iterator_v
 
template<typename T >
constexpr bool is_type_v = is_type<T>()
 
template<typename... Strings>
constexpr auto AllConvertibleToStrings_v = std::conjunction_v<std::is_convertible<Strings, std::string>...>
 

Typedef Documentation

template<typename T >
using util::details::DataProductPointerMap_t = typedef std::map<T const*, art::Ptr<T>>

Definition at line 35 of file DataProductPointerMap.h.

Function Documentation

template<typename Handle >
art::InputTag util::details::inputTagOf ( Handle const &  handle)

Definition at line 708 of file ArtHandleTrackerManager.h.

709  { return ProvenanceGetter<Handle>::inputTag(handle); }
template<typename T >
constexpr bool util::details::isPowerOfTwo ( value)

Returns whether the integral type value is a power of 2.

Definition at line 26 of file FastAndPoorGauss.h.

27  {
28  static_assert(std::is_integral_v<T>);
29  if constexpr(std::is_signed_v<T>) if (value < 0) return false;
30  do {
31  if (value & 1) return (value == 1);
32  } while (value >>= 1);
33  return false;
34  } // isPowerOfTwo()
then if[["$THISISATEST"==1]]
Definition: neoSmazza.sh:95
temporary value
template<std::size_t Lead, typename... Iterables>
auto util::details::make_zip_begin_iterator ( Iterables &&...  iterables)

Definition at line 268 of file zip.h.

268  {
269 
270  using std::begin;
271  return zip_iterator<Lead, decltype(begin(iterables))...>
272  { begin(iterables)... };
273 
274  } // make_zip_begin_iterator()
auto begin(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:573
template<std::size_t Lead, typename... Iterables>
auto util::details::make_zip_end_iterator ( Iterables &&...  iterables)

Definition at line 279 of file zip.h.

279  {
280 
281  using std::end;
282  return zip_iterator<Lead, decltype(end(iterables))...>
283  { end(iterables)... };
284 
285  } // make_zip_end_iterator()
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
template<std::size_t I, typename KeySort >
TupleElementOp<I, KeySort> util::details::makeTupleElementOp ( KeySort  keySort)

Definition at line 107 of file icarusalg/icarusalg/Utilities/SimpleClustering.h.

108  { return { keySort }; }
template<typename Coll , typename PtrColl >
void util::details::moveFromPointersImplBase ( Coll &  dest,
PtrColl &  src 
)

Definition at line 276 of file SortByPointers.h.

277  { for (auto&& ptr: src) dest.push_back(std::move(*ptr)); }
template<typename T >
T& util::details::NullRef ( )

Definition at line 460 of file MappedContainer.h.

460 { T* nullTptr = nullptr; return *nullTptr; }
template<typename T >
bool util::details::operator!= ( infinite_endcount_iterator< T > const &  ,
count_iterator< T > const &   
)

Never admit a infinite_endcount_iterator to be equal to anything else.

Definition at line 259 of file counter.h.

260  { return true; }
template<typename T >
bool util::details::operator!= ( count_iterator< T > const &  ,
infinite_endcount_iterator< T > const &   
)

Definition at line 264 of file counter.h.

265  { return true; }
template<typename Choices >
bool util::details::operator!= ( MultipleChoiceSelectionOption_t< Choices > const &  option,
Choices const  value 
)

Returns whether option does not have the specified value.

Definition at line 752 of file MultipleChoiceSelection.h.

753  { return option.value() != value; }
echo Invalid option
Definition: TrainMVA.sh:17
temporary value
template<typename Choices >
bool util::details::operator!= ( Choices const  value,
MultipleChoiceSelectionOption_t< Choices > const &  option 
)

Definition at line 757 of file MultipleChoiceSelection.h.

758  { return option != value; }
echo Invalid option
Definition: TrainMVA.sh:17
temporary value
template<typename Choices >
bool util::details::operator!= ( MultipleChoiceSelectionOption_t< Choices > const &  option,
std::string const &  label 
)

Returns whether option does not have the specified name or alias.

Definition at line 779 of file MultipleChoiceSelection.h.

783  { return !option.match(label); }
echo Invalid option
Definition: TrainMVA.sh:17
template<typename Choices >
bool util::details::operator!= ( std::string const &  label,
MultipleChoiceSelectionOption_t< Choices > const &  option 
)

Definition at line 786 of file MultipleChoiceSelection.h.

790  { return option != label; }
echo Invalid option
Definition: TrainMVA.sh:17
template<typename Choices >
std::ostream & util::details::operator<< ( std::ostream &  out,
MultipleChoiceSelectionOption_t< Choices > const &  option 
)

Prints an option into a stream.

— END – Comparison operators ------------------------------------——

Definition at line 796 of file MultipleChoiceSelection.h.

797  { out << option.name(); return out; }
echo Invalid option
Definition: TrainMVA.sh:17
template<typename T >
bool util::details::operator== ( infinite_endcount_iterator< T > const &  ,
count_iterator< T > const &   
)

Definition at line 269 of file counter.h.

270  { return false; }
template<typename T >
bool util::details::operator== ( count_iterator< T > const &  ,
infinite_endcount_iterator< T > const &   
)

Definition at line 274 of file counter.h.

275  { return false; }
template<typename Choices >
bool util::details::operator== ( MultipleChoiceSelectionOption_t< Choices > const &  option,
Choices const  value 
)

Returns whether option has the specified value.

Definition at line 740 of file MultipleChoiceSelection.h.

741  { return option.value() == value; }
echo Invalid option
Definition: TrainMVA.sh:17
temporary value
template<typename Choices >
bool util::details::operator== ( Choices const  value,
MultipleChoiceSelectionOption_t< Choices > const &  option 
)

Definition at line 745 of file MultipleChoiceSelection.h.

746  { return option == value; }
echo Invalid option
Definition: TrainMVA.sh:17
temporary value
template<typename Choices >
bool util::details::operator== ( MultipleChoiceSelectionOption_t< Choices > const &  option,
std::string const &  label 
)

Returns whether option has the specified name or alias.

Definition at line 763 of file MultipleChoiceSelection.h.

767  { return option.match(label); }
echo Invalid option
Definition: TrainMVA.sh:17
template<typename Choices >
bool util::details::operator== ( std::string const &  label,
MultipleChoiceSelectionOption_t< Choices > const &  option 
)

Definition at line 770 of file MultipleChoiceSelection.h.

774  { return option == label; }
echo Invalid option
Definition: TrainMVA.sh:17
template<typename Handle >
std::string util::details::productClassOf ( Handle const &  handle)

use candy

Definition at line 700 of file ArtHandleTrackerManager.h.

701  { return ProvenanceGetter<Handle>::productClass(handle); }
template<typename Handle >
std::type_info const * util::details::productTypeOf ( Handle const &  handle)

Definition at line 704 of file ArtHandleTrackerManager.h.

705  { return ProvenanceGetter<Handle>::productType(handle); }

Variable Documentation

template<typename... Strings>
constexpr auto util::details::AllConvertibleToStrings_v = std::conjunction_v<std::is_convertible<Strings, std::string>...>

Definition at line 32 of file MultipleChoiceSelection.h.

template<typename Iter >
constexpr bool util::details::is_random_access_iterator_v
Initial value:
= std::is_base_of_v<
std::random_access_iterator_tag,
typename std::iterator_traits<Iter>::iterator_category
>

Definition at line 91 of file sortBy.h.

template<typename T >
constexpr bool util::details::is_type_v = is_type<T>()

Definition at line 477 of file RangeForWrapper.h.