24 #include "cheetah/channel_mask/FlaggedChannels.h" 29 namespace channel_mask {
32 FlaggedChannels::FlaggedChannels()
36 FlaggedChannels::~FlaggedChannels()
43 auto it=std::find_if(_channel_ranges.begin(), _channel_ranges.end(),
44 [&](pss::astrotypes::DimensionSpan<data::Frequency>
const& d) {
45 return d.start() <= span.start();
47 if(it != _channel_ranges.cend())
49 pss::astrotypes::DimensionIndex<data::Frequency>
const end = it->start() + it->span();
50 if(end >= span.start()) {
51 pss::astrotypes::DimensionIndex<data::Frequency>
const span_end = span.start() + span.span();
53 it->span() += span_end - end;
57 _channel_ranges.insert(it, span);
61 _channel_ranges.push_back(span);
void insert(pss::astrotypes::DimensionSpan< data::Frequency > const &span)
insert the span into the glagged list in the appropriate place.
Some limits and constants for FLDO.