10#include <tracking/trackFindingCDC/utilities/IsApplicable.h>
17 namespace TrackFindingCDC {
23 template<
class T,
class SFINAE = decltype(&T::getAutomatonCell)>
26 return t.getAutomatonCell();
37 constexpr bool isCellHolder()
39 return isApplicable<GetAutomatonCell, T&>();
44 void static_assert_isCellHolder()
46 static_assert(isCellHolder<T>(),
"Template argument must support the CellHolder concept, "
47 "i.e. it must support cellHolder.getAutomatonCell()");
Cell used by the cellular automata.
Abstract base class for different kinds of events.
Getter functor for the automaton cell of an object.
AutomatonCell & operator()(T &t)
Returns the automaton cell of an object.