projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SignalData: Added snapshots accessor method
[pulseview.git]
/
pv
/
data
/
logic.cpp
diff --git
a/pv/data/logic.cpp
b/pv/data/logic.cpp
index b7b6cace08287eff88be95d951cdfbe16823f4c2..96f0d1fe7e63afe40bd8a23f8124eae698ab413d 100644
(file)
--- a/
pv/data/logic.cpp
+++ b/
pv/data/logic.cpp
@@
-20,12
+20,13
@@
#include <cassert>
#include <cassert>
-#include "logic.h"
-#include "logicsnapshot.h"
+#include "logic.h
pp
"
+#include "logicsnapshot.h
pp
"
using std::deque;
using std::max;
using std::shared_ptr;
using std::deque;
using std::max;
using std::shared_ptr;
+using std::vector;
namespace pv {
namespace data {
namespace pv {
namespace data {
@@
-48,11
+49,17
@@
void Logic::push_snapshot(
snapshots_.push_front(snapshot);
}
snapshots_.push_front(snapshot);
}
-deque< shared_ptr<LogicSnapshot> >& Logic::get_snapshots()
+const deque< shared_ptr<LogicSnapshot> >& Logic::logic_snapshots() const
{
return snapshots_;
}
{
return snapshots_;
}
+vector< shared_ptr<Snapshot> > Logic::snapshots() const
+{
+ return vector< shared_ptr<Snapshot> >(
+ snapshots_.begin(), snapshots_.end());
+}
+
void Logic::clear()
{
snapshots_.clear();
void Logic::clear()
{
snapshots_.clear();