\
\
template<> \
{ \
}; \
\
\
template<> \
inline bool JTriggerInterface::checkTriggerBit<N>()
const \
{ \
} \
\
\
template<> \
const char* JTriggerInterface::getTriggerName<N>() \
{ \
}
Auxialiary class to assert type conversion.
Template definition of a multi-dimensional oscillation probability interpolation table.
This class will generate a compiler error if trigger bit is out of range.
This class is used to map trigger class to trigger bit.
Macro to set trigger bit of a given trigger class.
This macro should be called for each trigger class. As a result, the trigger class is mapped to a unique bit. This mapping is then avaiable in the following ways:
271#define setTriggerBit(JTrigger_t, N) \
272 \
273 \
274 template<> \
275 struct JTriggerBit<JTrigger_t> : \
276 JAssertConversion<JTrigger_t, JTriggerInterface>, \
277 JAssertBit<N> \
278 { \
279 static const JTriggerbit_t value = N; \
280 }; \
281 \
282 \
283 template<> \
284 inline bool JTriggerInterface::checkTriggerBit<N>() const \
285 { \
286 return dynamic_cast<const JTrigger_t*>(this) != NULL; \
287 } \
288 \
289 \
290 template<> \
291 const char* JTriggerInterface::getTriggerName<N>() \
292 { \
293 return #JTrigger_t; \
294 }