Program Listing for File IsChildGroupOfEvent.hpp¶
↰ Return to documentation for file (include/dish2/events/IsChildGroupOfEvent.hpp)
#pragma once
#ifndef DISH2_EVENTS_ISCHILDGROUPOFEVENT_HPP_INCLUDE
#define DISH2_EVENTS_ISCHILDGROUPOFEVENT_HPP_INCLUDE
#include <utility>
#include "../peripheral/readable_state/ReadableState.hpp"
namespace dish2 {
struct IsChildGroupOfEvent {
template< typename Cardinal, size_t SeriesIdx >
static bool Test( const Cardinal& cardinal ) {
using spec_t = typename Cardinal::spec_t;
return cardinal.peripheral.readable_state.template Get<
typename dish2::IsChildGroupOf<spec_t>
>().template Get<
SeriesIdx
>();
}
};
} // namespace dish2
#endif // #ifndef DISH2_EVENTS_ISCHILDGROUPOFEVENT_HPP_INCLUDE