27 using std::shared_ptr;
36 num_channels_(num_channels)
50 if ((
samplerate_ == 1) && (segment->samplerate() > 1))
98 for (
const shared_ptr<LogicSegment>& s :
segments_) {
100 l =
max(l, s->get_sample_count());
deque< shared_ptr< LogicSegment > > segments_
const deque< shared_ptr< LogicSegment > > & logic_segments() const
void samples_added(SharedPtrToSegment segment, uint64_t start_sample, uint64_t end_sample)
Logic(unsigned int num_channels)
void set_samplerate(double value)
void notify_samples_added(shared_ptr< Segment > segment, uint64_t start_sample, uint64_t end_sample)
T value(details::expression_node< T > *n)
uint64_t max_sample_count() const
T max(const T v0, const T v1)
void push_segment(shared_ptr< LogicSegment > &segment)
const unsigned int num_channels_
vector< shared_ptr< Segment > > segments() const
double get_samplerate() const
uint32_t get_segment_count() const
void on_segment_completed()
unsigned int num_channels() const