1 #ifndef CommonTools_Utils_OrSelector_h 2 #define CommonTools_Utils_OrSelector_h 16 template<
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
struct CombinedEventSetupInit;
20 template<
typename S1,
typename S2,
21 typename S3 = helpers::NullOrOperand,
typename S4 = helpers::NullOrOperand,
22 typename S5 = helpers::NullOrOperand>
24 OrSelector(
const S1 & s1,
const S2 &
s2,
const S3 & s3,
const S4 & s4,
const S5 & s5 ) :
25 s1_( s1 ), s2_( s2 ), s3_( s3 ), s4_( s4 ), s5_( s5 ) { }
28 return s1_( t ) || s2_( t ) || s3_( t ) || s4_( t ) || s5_( t );
40 template<
typename S1,
typename S2>
41 struct OrSelector<S1, S2,
helpers::NullOrOperand, helpers::NullOrOperand, helpers::NullOrOperand> {
43 s1_( s1 ), s2_( s2 ) { }
47 return s1_( t ) || s2_( t );
55 template<typename S1, typename S2, typename S3>
56 struct
OrSelector<S1, S2, S3, helpers::NullOrOperand, helpers::NullOrOperand> {
58 s1_( s1 ), s2_( s2 ), s3_( s3 ) { }
61 return s1_( t ) || s2_( t ) || s3_( t );
70 template<typename S1, typename S2, typename S3, typename S4>
71 struct
OrSelector<S1, S2, S3, S4, helpers::NullOrOperand> {
72 OrSelector(
const S1 & s1,
const S2 &
s2,
const S3 & s3,
const S4 & s4 ) :
73 s1_( s1 ), s2_( s2 ), s3_( s3 ), s4_( s4 ) { }
76 return s1_( t ) || s2_( t ) || s3_( t ) || s4_( t );
OrSelector(const S1 &s1, const S2 &s2, const S3 &s3, const S4 &s4)
OrSelector(const S1 &s1, const S2 &s2)
bool operator()(const T &t) const
bool operator()(const T &t) const
bool operator()(const T &t) const
bool operator()(const T &t) const
def template(fileName, svg, replaceme="REPLACEME")
OrSelector(const S1 &s1, const S2 &s2, const S3 &s3, const S4 &s4, const S5 &s5)
OrSelector(const S1 &s1, const S2 &s2, const S3 &s3)