X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.cpp;h=96f0d1fe7e63afe40bd8a23f8124eae698ab413d;hb=99503171d4f32570829df171521b4b9cbccb0503;hp=b7b6cace08287eff88be95d951cdfbe16823f4c2;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;p=pulseview.git diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index b7b6cac..96f0d1f 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -20,12 +20,13 @@ #include -#include "logic.h" -#include "logicsnapshot.h" +#include "logic.hpp" +#include "logicsnapshot.hpp" using std::deque; using std::max; using std::shared_ptr; +using std::vector; namespace pv { namespace data { @@ -48,11 +49,17 @@ void Logic::push_snapshot( snapshots_.push_front(snapshot); } -deque< shared_ptr >& Logic::get_snapshots() +const deque< shared_ptr >& Logic::logic_snapshots() const { return snapshots_; } +vector< shared_ptr > Logic::snapshots() const +{ + return vector< shared_ptr >( + snapshots_.begin(), snapshots_.end()); +} + void Logic::clear() { snapshots_.clear();