snapshots_.push_front(snapshot);
}
-deque< shared_ptr<AnalogSnapshot> >& Analog::get_snapshots()
+const deque< shared_ptr<AnalogSnapshot> >& Analog::analog_snapshots() const
{
return snapshots_;
}
void push_snapshot(
std::shared_ptr<AnalogSnapshot> &snapshot);
- std::deque< std::shared_ptr<AnalogSnapshot> >&
- get_snapshots();
+ const std::deque< std::shared_ptr<AnalogSnapshot> >&
+ analog_snapshots() const;
void clear();
// Check we have a snapshot of data
const deque< shared_ptr<pv::data::LogicSnapshot> > &snapshots =
- data->get_snapshots();
+ data->logic_snapshots();
if (snapshots.empty())
return;
snapshot_ = snapshots.front();
snapshots_.push_front(snapshot);
}
-deque< shared_ptr<LogicSnapshot> >& Logic::get_snapshots()
+const deque< shared_ptr<LogicSnapshot> >& Logic::logic_snapshots() const
{
return snapshots_;
}
void push_snapshot(
std::shared_ptr<LogicSnapshot> &snapshot);
- std::deque< std::shared_ptr<LogicSnapshot> >&
- get_snapshots();
+ const std::deque< std::shared_ptr<LogicSnapshot> >&
+ logic_snapshots() const;
void clear();
// Get the snapshot
const deque< shared_ptr<data::LogicSnapshot> > &snapshots =
- data->get_snapshots();
+ data->logic_snapshots();
if (snapshots.empty()) {
error_ = tr("No snapshots to save.");
return;
const deque< shared_ptr<pv::data::AnalogSnapshot> > &snapshots =
- data_->get_snapshots();
+ data_->analog_snapshots();
if (snapshots.empty())
return;
((data = logic_signal->logic_data())))
break;
- if (!data || data->get_snapshots().empty())
+ if (!data || data->logic_snapshots().empty())
return;
const shared_ptr<LogicSnapshot> snapshot =
- data->get_snapshots().front();
+ data->logic_snapshots().front();
assert(snapshot);
const int64_t sample_count = (int64_t)snapshot->get_sample_count();
if (sample_count == 0)
const float low_offset = y + 0.5f;
const deque< shared_ptr<pv::data::LogicSnapshot> > &snapshots =
- data_->get_snapshots();
+ data_->logic_snapshots();
if (snapshots.empty())
return;