X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fanalog.cpp;h=dba99253eeb7a77f559f537cf7cf03b652adcbab;hp=c7430432613c3eadbf373e25b16374f0a1cb980f;hb=1df18f6b6d20abd3f1ede94325b6781bf5038ea9;hpb=d9aecf1fcd9af471db3b59de7efc65b9632a6d79 diff --git a/pv/data/analog.cpp b/pv/data/analog.cpp index c7430432..dba99253 100644 --- a/pv/data/analog.cpp +++ b/pv/data/analog.cpp @@ -18,12 +18,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "analog.h" -#include "analogsnapshot.h" +#include + +#include "analog.hpp" +#include "analogsnapshot.hpp" -using boost::shared_ptr; using std::deque; using std::max; +using std::shared_ptr; namespace pv { namespace data { @@ -35,23 +37,23 @@ Analog::Analog() : void Analog::push_snapshot(shared_ptr &snapshot) { - _snapshots.push_front(snapshot); + snapshots_.push_front(snapshot); } -deque< shared_ptr >& Analog::get_snapshots() +const deque< shared_ptr >& Analog::analog_snapshots() const { - return _snapshots; + return snapshots_; } void Analog::clear() { - _snapshots.clear(); + snapshots_.clear(); } uint64_t Analog::get_max_sample_count() const { uint64_t l = 0; - for (const boost::shared_ptr s : _snapshots) { + for (const std::shared_ptr s : snapshots_) { assert(s); l = max(l, s->get_sample_count()); }