void LogicData::push_snapshot(
boost::shared_ptr<LogicDataSnapshot> &snapshot)
{
- _snapshots.push(snapshot);
+ _snapshots.push_front(snapshot);
}
-queue< shared_ptr<LogicDataSnapshot> >& LogicData::get_snapshots()
+deque< shared_ptr<LogicDataSnapshot> >& LogicData::get_snapshots()
{
return _snapshots;
}
#include "signaldata.h"
#include <boost/shared_ptr.hpp>
-#include <queue>
+#include <deque>
extern "C" {
#include <libsigrok/libsigrok.h>
void push_snapshot(
boost::shared_ptr<LogicDataSnapshot> &snapshot);
- std::queue< boost::shared_ptr<LogicDataSnapshot> >&
+ std::deque< boost::shared_ptr<LogicDataSnapshot> >&
get_snapshots();
private:
const int _num_probes;
- std::queue< boost::shared_ptr<LogicDataSnapshot> >
+ std::deque< boost::shared_ptr<LogicDataSnapshot> >
_snapshots;
};
const float high_offset = rect.top() + Margin;
const float low_offset = rect.bottom() - Margin;
- const queue< shared_ptr<LogicDataSnapshot> > &snapshots =
+ const deque< shared_ptr<LogicDataSnapshot> > &snapshots =
_data->get_snapshots();
if(snapshots.empty())
return;