CMS 3D CMS Logo

Classes | Typedefs | Functions
edm::fillDetails Namespace Reference

Classes

struct  fillDescriptions_function
 
struct  has_fillDescriptions_function
 
struct  has_prevalidate_function
 
struct  prevalidate_function
 

Typedefs

using no_tag = std::false_type
 
using yes_tag = std::true_type
 

Functions

template<typename T >
void fillIfExists (ConfigurationDescriptions &descriptions)
 
template<typename T >
no_tag has_fillDescriptions_helper (...)
 
template<typename T >
yes_tag has_fillDescriptions_helper (fillDescriptions_function< T, &T::fillDescriptions > *dummy)
 
template<typename T >
no_tag has_prevalidate_helper (...)
 
template<typename T >
yes_tag has_prevalidate_helper (fillDescriptions_function< T, &T::prevalidate > *dummy)
 
template<typename T >
void prevalidateIfExists (ConfigurationDescriptions &descriptions)
 

Typedef Documentation

◆ no_tag

using edm::fillDetails::no_tag = typedef std::false_type

Definition at line 62 of file ParameterSetDescriptionFiller.h.

◆ yes_tag

using edm::fillDetails::yes_tag = typedef std::true_type

Definition at line 63 of file ParameterSetDescriptionFiller.h.

Function Documentation

◆ fillIfExists()

template<typename T >
void edm::fillDetails::fillIfExists ( ConfigurationDescriptions descriptions)

Definition at line 90 of file ParameterSetDescriptionFiller.h.

References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, and fillDescriptions().

90  {
92  T::fillDescriptions(descriptions);
93  } else {
95  desc.setUnknown();
96  descriptions.addDefault(desc);
97  }
98  }
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)

◆ has_fillDescriptions_helper() [1/2]

template<typename T >
no_tag edm::fillDetails::has_fillDescriptions_helper (   ...)

◆ has_fillDescriptions_helper() [2/2]

template<typename T >
yes_tag edm::fillDetails::has_fillDescriptions_helper ( fillDescriptions_function< T, &T::fillDescriptions > *  dummy)

◆ has_prevalidate_helper() [1/2]

template<typename T >
no_tag edm::fillDetails::has_prevalidate_helper (   ...)

◆ has_prevalidate_helper() [2/2]

template<typename T >
yes_tag edm::fillDetails::has_prevalidate_helper ( fillDescriptions_function< T, &T::prevalidate > *  dummy)

◆ prevalidateIfExists()

template<typename T >
void edm::fillDetails::prevalidateIfExists ( ConfigurationDescriptions descriptions)

Definition at line 101 of file ParameterSetDescriptionFiller.h.

101  {
102  if constexpr (has_prevalidate_function<T>::value) {
103  T::prevalidate(descriptions);
104  }
105  }