|
|
Go to the documentation of this file. 1 #ifndef PhysicsTools_Utilities_SimplifySum_h
2 #define PhysicsTools_Utilities_SimplifySum_h
10 #include <type_traits>
11 #include <boost/mpl/if.hpp>
110 template <
typename Prod,
bool simplify = Prod::value>
116 template <
typename Prod>
122 template <
typename F,
typename G,
typename H>
129 inline static const A&
a(
const F&
f,
const G&
g,
const H&
h) {
return f; }
130 inline static const B&
b(
const F&
f,
const G&
g,
const H&
h) {
return g; }
131 inline static const C&
c(
const F&
f,
const G&
g,
const H&
h) {
return h; }
140 inline static const A&
a(
const F&
f,
const G&
g,
const H&
h) {
return f; }
141 inline static const B&
b(
const F&
f,
const G&
g,
const H&
h) {
return h; }
142 inline static const C&
c(
const F&
f,
const G&
g,
const H&
h) {
return g; }
151 inline static const A&
a(
const F&
f,
const G&
g,
const H&
h) {
return g; }
152 inline static const B&
b(
const F&
f,
const G&
g,
const H&
h) {
return h; }
153 inline static const C&
c(
const F&
f,
const G&
g,
const H&
h) {
return f; }
static type combine(const typename Prod::AB &_1, const typename Prod::C &_2)
AuxSum< prod >::type type
::boost::mpl::if_< prod1, prod1, typename ::boost::mpl::if_< prod2, prod2, prod0 >::type >::type prod
static const C & c(const F &f, const G &g, const H &h)
Sum< typename Prod::AB, typename Prod::C >::type type
TEMPL(T2) struct Divides B
SumStruct< typename Prod::AB, typename Prod::C > type
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static const B & b(const F &f, const G &g, const H &h)
SumStruct< arg1, arg2 > type
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
static const C & c(const F &f, const G &g, const H &h)
Product< Numerical< 2 >, A >::type type
static const A & a(const F &f, const G &g, const H &h)
DecomposeProduct< typename Product< Numerical< n >, A >::type, A > Dec
static type combine(const SumStruct< F, G > &fg, const H &h)
static const B & b(const F &f, const G &g, const H &h)
static const A & a(const F &f, const G &g, const H &h)
TEMPL(T1) struct Divides0
Product< Numerical< m >, A >::type arg2
static const C & c(const F &f, const G &g, const H &h)
#define SUM_RULE(TMPL, T1, T2, RES, COMB)
static const std::string B
Product< Numerical< n >, A >::type arg1
#define COMBINE(A, B, RES)
#define DIFF_RULE(TMPL, T1, T2, RES, COMB)
static const A & a(const F &f, const G &g, const H &h)
Product< Numerical< n+m >, A >::type type
typedef PROD(F, SUM(RATIO(A, F), RATIO(B, F))) type
static const B & b(const F &f, const G &g, const H &h)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g