A collection of traits for a time scale. More...
#include <DetectorTimingTypes.h>
A collection of traits for a time scale.
Cat | category the traits belong to |
The included traits are documented in details::timescale_traits_base
.
Traits are specified by specializing the timescale_traits
class for the category. The easiest way is to derive the specialized class from details::timescale_traits_base<Cat>
and add the necessary customization:
Among the traits, one offers whether a specified category is "compatible" with this one. The easiest way to implement that is to define a set of compatible categories, and then an object which returns whether a category is among them. This object should override category_compatible_with
member of each relevant category trait. A way to achieve that is to define a specific trait base class:
Definition at line 89 of file DetectorTimingTypes.h.