#include "analog.h"
#include "analogsnapshot.h"
-using boost::shared_ptr;
using std::deque;
using std::max;
+using std::shared_ptr;
namespace pv {
namespace data {
uint64_t Analog::get_max_sample_count() const
{
uint64_t l = 0;
- for (const boost::shared_ptr<AnalogSnapshot> s : _snapshots) {
+ for (const std::shared_ptr<AnalogSnapshot> s : _snapshots) {
assert(s);
l = max(l, s->get_sample_count());
}
#include "signaldata.h"
-#include <boost/shared_ptr.hpp>
#include <deque>
+#include <memory>
namespace pv {
namespace data {
Analog();
void push_snapshot(
- boost::shared_ptr<AnalogSnapshot> &snapshot);
+ std::shared_ptr<AnalogSnapshot> &snapshot);
- std::deque< boost::shared_ptr<AnalogSnapshot> >&
+ std::deque< std::shared_ptr<AnalogSnapshot> >&
get_snapshots();
void clear();
uint64_t get_max_sample_count() const;
private:
- std::deque< boost::shared_ptr<AnalogSnapshot> > _snapshots;
+ std::deque< std::shared_ptr<AnalogSnapshot> > _snapshots;
};
} // namespace data
#include <pv/view/logicsignal.h>
-using boost::shared_ptr;
using std::set;
using std::map;
+using std::shared_ptr;
using std::string;
namespace pv {
}
void Decoder::set_probes(std::map<const srd_channel*,
- boost::shared_ptr<view::LogicSignal> > probes)
+ std::shared_ptr<view::LogicSignal> > probes)
{
_probes = probes;
}
#define PULSEVIEW_PV_DATA_DECODE_DECODER_H
#include <map>
+#include <memory>
#include <set>
-#include <boost/shared_ptr.hpp>
-
#include <glib.h>
struct srd_decoder;
void show(bool show = true);
const std::map<const srd_channel*,
- boost::shared_ptr<view::LogicSignal> >& channels() const;
+ std::shared_ptr<view::LogicSignal> >& channels() const;
void set_probes(std::map<const srd_channel*,
- boost::shared_ptr<view::LogicSignal> > probes);
+ std::shared_ptr<view::LogicSignal> > probes);
const std::map<std::string, GVariant*>& options() const;
srd_decoder_inst* create_decoder_inst(
srd_session *session, int unit_size) const;
- std::set< boost::shared_ptr<pv::data::Logic> > get_data();
+ std::set< std::shared_ptr<pv::data::Logic> > get_data();
private:
const srd_decoder *const _decoder;
bool _shown;
- std::map<const srd_channel*, boost::shared_ptr<pv::view::LogicSignal> >
+ std::map<const srd_channel*, std::shared_ptr<pv::view::LogicSignal> >
_probes;
std::map<std::string, GVariant*> _options;
};
using boost::lock_guard;
using boost::mutex;
using boost::optional;
-using boost::shared_ptr;
using boost::unique_lock;
using std::deque;
using std::make_pair;
using std::list;
using std::map;
using std::pair;
+using std::shared_ptr;
using std::vector;
using namespace pv::data::decode;
}
}
-const std::list< boost::shared_ptr<decode::Decoder> >&
+const std::list< std::shared_ptr<decode::Decoder> >&
DecoderStack::stack() const
{
return _stack;
}
-void DecoderStack::push(boost::shared_ptr<decode::Decoder> decoder)
+void DecoderStack::push(std::shared_ptr<decode::Decoder> decoder)
{
assert(decoder);
_stack.push_back(decoder);
#include "signaldata.h"
#include <list>
+#include <memory>
#include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include <QObject>
virtual ~DecoderStack();
- const std::list< boost::shared_ptr<decode::Decoder> >& stack() const;
- void push(boost::shared_ptr<decode::Decoder> decoder);
+ const std::list< std::shared_ptr<decode::Decoder> >& stack() const;
+ void push(std::shared_ptr<decode::Decoder> decoder);
void remove(int index);
int64_t samples_decoded() const;
*/
static boost::mutex _global_decode_mutex;
- std::list< boost::shared_ptr<decode::Decoder> > _stack;
+ std::list< std::shared_ptr<decode::Decoder> > _stack;
- boost::shared_ptr<pv::data::LogicSnapshot> _snapshot;
+ std::shared_ptr<pv::data::LogicSnapshot> _snapshot;
mutable boost::mutex _input_mutex;
mutable boost::condition_variable _input_cond;
#include "logic.h"
#include "logicsnapshot.h"
-using boost::shared_ptr;
using std::deque;
using std::max;
+using std::shared_ptr;
namespace pv {
namespace data {
uint64_t Logic::get_max_sample_count() const
{
uint64_t l = 0;
- for (boost::shared_ptr<LogicSnapshot> s : _snapshots) {
+ for (std::shared_ptr<LogicSnapshot> s : _snapshots) {
assert(s);
l = max(l, s->get_sample_count());
}
#include "signaldata.h"
-#include <boost/shared_ptr.hpp>
#include <deque>
+#include <memory>
namespace pv {
namespace data {
int get_num_probes() const;
void push_snapshot(
- boost::shared_ptr<LogicSnapshot> &snapshot);
+ std::shared_ptr<LogicSnapshot> &snapshot);
- std::deque< boost::shared_ptr<LogicSnapshot> >&
+ std::deque< std::shared_ptr<LogicSnapshot> >&
get_snapshots();
void clear();
private:
const unsigned int _num_probes;
- std::deque< boost::shared_ptr<LogicSnapshot> > _snapshots;
+ std::deque< std::shared_ptr<LogicSnapshot> > _snapshots;
};
} // namespace data
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
#include <sstream>
#include <libsigrok/libsigrok.h>
#ifndef PULSEVIEW_PV_DEVICE_DEVINST_H
#define PULSEVIEW_PV_DEVICE_DEVINST_H
+#include <memory>
#include <string>
-#include <boost/shared_ptr.hpp>
-
#include <QObject>
#include <glib.h>
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include "sessionfile.h"
#include <libsigrok/libsigrok.h>
#include <libsigrok/libsigrok.h>
-using boost::shared_ptr;
using std::list;
using std::map;
using std::ostringstream;
using std::runtime_error;
+using std::shared_ptr;
using std::string;
namespace pv {
#include <glib.h>
#include <list>
+#include <memory>
#include <string>
-#include <boost/shared_ptr.hpp>
-
struct sr_context;
struct sr_dev_driver;
~DeviceManager();
- const std::list< boost::shared_ptr<pv::device::Device> >&
+ const std::list< std::shared_ptr<pv::device::Device> >&
devices() const;
- std::list< boost::shared_ptr<pv::device::Device> > driver_scan(
+ std::list< std::shared_ptr<pv::device::Device> > driver_scan(
struct sr_dev_driver *const driver,
GSList *const drvopts = NULL);
void release_driver(struct sr_dev_driver *const driver);
- static bool compare_devices(boost::shared_ptr<device::Device> a,
- boost::shared_ptr<device::Device> b);
+ static bool compare_devices(std::shared_ptr<device::Device> a,
+ std::shared_ptr<device::Device> b);
private:
struct sr_context *const _sr_ctx;
- std::list< boost::shared_ptr<pv::device::Device> > _devices;
+ std::list< std::shared_ptr<pv::device::Device> > _devices;
};
} // namespace pv
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include <libsigrok/libsigrok.h>
#include "connect.h"
#include <libsigrok/libsigrok.h>
}
-using boost::shared_ptr;
using std::list;
+using std::shared_ptr;
using std::string;
extern sr_context *sr_ctx;
#ifndef PULSEVIEW_PV_CONNECT_H
#define PULSEVIEW_PV_CONNECT_H
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QComboBox>
#include <QDialog>
public:
Connect(QWidget *parent, pv::DeviceManager &device_manager);
- boost::shared_ptr<device::Device> get_selected_device() const;
+ std::shared_ptr<device::Device> get_selected_device() const;
private:
void populate_drivers();
QPushButton _scan_button;
QListWidget _device_list;
- std::map<const sr_dev_inst*, boost::shared_ptr<pv::device::Device> >
+ std::map<const sr_dev_inst*, std::shared_ptr<pv::device::Device> >
_device_map;
QDialogButtonBox _button_box;
#ifndef PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_H
#define PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_H
+#include <memory>
#include <set>
-#include <boost/shared_ptr.hpp>
-
#include <QProgressDialog>
#include <pv/storesession.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
-using boost::shared_ptr;
using std::list;
+using std::shared_ptr;
namespace pv {
#define PULSEVIEW_PV_MAINWINDOW_H
#include <list>
-
-#include <boost/weak_ptr.hpp>
+#include <memory>
#include <QMainWindow>
#include <pv/prop/property.h>
-using boost::shared_ptr;
+using std::shared_ptr;
namespace pv {
namespace popups {
Q_OBJECT
public:
- DeviceOptions(boost::shared_ptr<device::DevInst> dev_inst,
+ DeviceOptions(std::shared_ptr<device::DevInst> dev_inst,
QWidget *parent);
pv::prop::binding::DeviceOptions& binding();
private:
- boost::shared_ptr<device::DevInst> _dev_inst;
+ std::shared_ptr<device::DevInst> _dev_inst;
QVBoxLayout _layout;
using namespace Qt;
-using boost::shared_ptr;
using std::map;
using std::set;
+using std::shared_ptr;
using std::vector;
using pv::view::Signal;
#define PULSEVIEW_PV_POPUPS_PROBES_H
#include <map>
+#include <memory>
#include <vector>
-#include <boost/shared_ptr.hpp>
-
#include <QFormLayout>
#include <QHBoxLayout>
#include <QPushButton>
void set_all_probes(bool set);
void populate_group(const sr_channel_group *group,
- const std::vector< boost::shared_ptr<pv::view::Signal> > sigs);
+ const std::vector< std::shared_ptr<pv::view::Signal> > sigs);
QGridLayout* create_channel_group_grid(
- const std::vector< boost::shared_ptr<pv::view::Signal> > sigs);
+ const std::vector< std::shared_ptr<pv::view::Signal> > sigs);
private:
void showEvent(QShowEvent *e);
bool _updating_probes;
- std::vector< boost::shared_ptr<pv::prop::binding::DeviceOptions> >
+ std::vector< std::shared_ptr<pv::prop::binding::DeviceOptions> >
_group_bindings;
- std::map< QCheckBox*, boost::shared_ptr<pv::view::Signal> >
+ std::map< QCheckBox*, std::shared_ptr<pv::view::Signal> >
_check_box_signal_map;
QHBoxLayout _buttons_bar;
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include <QFormLayout>
#include <pv/prop/property.h>
#include "binding.h"
-using boost::shared_ptr;
+using std::shared_ptr;
namespace pv {
namespace prop {
namespace binding {
-const std::vector< boost::shared_ptr<Property> >& Binding::properties()
+const std::vector< std::shared_ptr<Property> >& Binding::properties()
{
return _properties;
}
#include <glib.h>
#include <vector>
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QString>
class Binding
{
public:
- const std::vector< boost::shared_ptr<Property> >& properties();
+ const std::vector< std::shared_ptr<Property> >& properties();
void commit();
static QString print_gvariant(GVariant *const gvar);
protected:
- std::vector< boost::shared_ptr<Property> > _properties;
+ std::vector< std::shared_ptr<Property> > _properties;
};
} // binding
using boost::bind;
using boost::none;
-using boost::shared_ptr;
using std::make_pair;
using std::map;
using std::pair;
+using std::shared_ptr;
using std::string;
using std::vector;
class DecoderOptions : public Binding
{
public:
- DecoderOptions(boost::shared_ptr<pv::data::DecoderStack> decoder_stack,
- boost::shared_ptr<pv::data::decode::Decoder> decoder);
+ DecoderOptions(std::shared_ptr<pv::data::DecoderStack> decoder_stack,
+ std::shared_ptr<pv::data::decode::Decoder> decoder);
private:
- static boost::shared_ptr<Property> bind_enum(const QString &name,
+ static std::shared_ptr<Property> bind_enum(const QString &name,
const srd_decoder_option *option,
Property::Getter getter, Property::Setter setter);
void setter(const char *id, GVariant *value);
private:
- boost::shared_ptr<pv::data::DecoderStack> _decoder_stack;
- boost::shared_ptr<pv::data::decode::Decoder> _decoder;
+ std::shared_ptr<pv::data::DecoderStack> _decoder_stack;
+ std::shared_ptr<pv::data::decode::Decoder> _decoder;
};
} // binding
using boost::bind;
using boost::function;
using boost::optional;
-using boost::shared_ptr;
using std::make_pair;
using std::pair;
+using std::shared_ptr;
using std::string;
using std::vector;
class DeviceOptions : public Binding
{
public:
- DeviceOptions(boost::shared_ptr<pv::device::DevInst> dev_inst,
+ DeviceOptions(std::shared_ptr<pv::device::DevInst> dev_inst,
const sr_channel_group *group = NULL);
private:
static QString print_voltage_threshold(GVariant *const gvar);
protected:
- boost::shared_ptr<device::DevInst> _dev_inst;
+ std::shared_ptr<device::DevInst> _dev_inst;
const sr_channel_group *const _group;
};
#include <QDebug>
-using boost::dynamic_pointer_cast;
using boost::function;
using boost::lock_guard;
using boost::mutex;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
using std::list;
using std::map;
using std::set;
+using std::shared_ptr;
using std::string;
using std::vector;
#define PULSEVIEW_PV_SIGSESSION_H
#include <boost/function.hpp>
-#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include <map>
+#include <memory>
#include <set>
#include <string>
#include <vector>
~SigSession();
- boost::shared_ptr<device::DevInst> get_device() const;
+ std::shared_ptr<device::DevInst> get_device() const;
/**
* Sets device instance that will be used in the next capture session.
*/
- void set_device(boost::shared_ptr<device::DevInst> dev_inst)
+ void set_device(std::shared_ptr<device::DevInst> dev_inst)
throw(QString);
void set_file(const std::string &name)
void stop_capture();
- std::set< boost::shared_ptr<data::SignalData> > get_data() const;
+ std::set< std::shared_ptr<data::SignalData> > get_data() const;
- std::vector< boost::shared_ptr<view::Signal> >
+ std::vector< std::shared_ptr<view::Signal> >
get_signals() const;
#ifdef ENABLE_DECODE
bool add_decoder(srd_decoder *const dec);
- std::vector< boost::shared_ptr<view::DecodeTrace> >
+ std::vector< std::shared_ptr<view::DecodeTrace> >
get_decode_signals() const;
void remove_decode_signal(view::DecodeTrace *signal);
private:
void set_capture_state(capture_state state);
- void update_signals(boost::shared_ptr<device::DevInst> dev_inst);
+ void update_signals(std::shared_ptr<device::DevInst> dev_inst);
- boost::shared_ptr<view::Signal> signal_from_probe(
+ std::shared_ptr<view::Signal> signal_from_probe(
const sr_channel *probe) const;
void read_sample_rate(const sr_dev_inst *const sdi);
boost::function<void (const QString)> error_handler,
sr_input_format *format = NULL);
- void sample_thread_proc(boost::shared_ptr<device::DevInst> dev_inst,
+ void sample_thread_proc(std::shared_ptr<device::DevInst> dev_inst,
boost::function<void (const QString)> error_handler);
void feed_in_header(const sr_dev_inst *sdi);
/**
* The device instance that will be used in the next capture session.
*/
- boost::shared_ptr<device::DevInst> _dev_inst;
+ std::shared_ptr<device::DevInst> _dev_inst;
- std::vector< boost::shared_ptr<view::DecodeTrace> > _decode_traces;
+ std::vector< std::shared_ptr<view::DecodeTrace> > _decode_traces;
mutable boost::mutex _sampling_mutex;
capture_state _capture_state;
mutable boost::mutex _signals_mutex;
- std::vector< boost::shared_ptr<view::Signal> > _signals;
+ std::vector< std::shared_ptr<view::Signal> > _signals;
mutable boost::mutex _data_mutex;
- boost::shared_ptr<data::Logic> _logic_data;
- boost::shared_ptr<data::LogicSnapshot> _cur_logic_snapshot;
- std::map< const sr_channel*, boost::shared_ptr<data::AnalogSnapshot> >
+ std::shared_ptr<data::Logic> _logic_data;
+ std::shared_ptr<data::LogicSnapshot> _cur_logic_snapshot;
+ std::map< const sr_channel*, std::shared_ptr<data::AnalogSnapshot> >
_cur_analog_snapshots;
boost::thread _sampling_thread;
#include <pv/data/logicsnapshot.h>
#include <pv/view/signal.h>
-using boost::dynamic_pointer_cast;
using boost::mutex;
-using boost::shared_ptr;
using boost::thread;
using boost::lock_guard;
using std::deque;
+using std::dynamic_pointer_cast;
using std::make_pair;
using std::min;
using std::pair;
using std::set;
+using std::shared_ptr;
using std::string;
using std::vector;
void cancel();
private:
- void store_proc(boost::shared_ptr<pv::data::LogicSnapshot> snapshot);
+ void store_proc(std::shared_ptr<pv::data::LogicSnapshot> snapshot);
signals:
void progress_updated();
#include <pv/popups/probes.h>
#include <pv/util.h>
-using boost::shared_ptr;
using std::map;
using std::max;
using std::min;
+using std::shared_ptr;
using std::string;
namespace pv {
#include <list>
#include <map>
-
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QComboBox>
#include <QDoubleSpinBox>
SamplingBar(SigSession &session, QWidget *parent);
void set_device_list(
- const std::list< boost::shared_ptr<pv::device::DevInst> >
+ const std::list< std::shared_ptr<pv::device::DevInst> >
&devices,
- boost::shared_ptr<pv::device::DevInst> selected);
+ std::shared_ptr<pv::device::DevInst> selected);
- boost::shared_ptr<pv::device::DevInst> get_selected_device() const;
+ std::shared_ptr<pv::device::DevInst> get_selected_device() const;
void set_capture_state(pv::SigSession::capture_state state);
SigSession &_session;
QComboBox _device_selector;
- std::map<const sr_dev_inst*, boost::weak_ptr<device::DevInst> >
+ std::map<const sr_dev_inst*, std::weak_ptr<device::DevInst> >
_device_selector_map;
bool _updating_device_selector;
#include "pv/data/analogsnapshot.h"
#include "pv/view/view.h"
-using boost::shared_ptr;
using std::max;
using std::min;
+using std::shared_ptr;
using std::deque;
namespace pv {
#include "signal.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
namespace pv {
static const float EnvelopeThreshold;
public:
- AnalogSignal(boost::shared_ptr<pv::device::DevInst> dev_inst,
+ AnalogSignal(std::shared_ptr<pv::device::DevInst> dev_inst,
const sr_channel *const probe,
- boost::shared_ptr<pv::data::Analog> data);
+ std::shared_ptr<pv::data::Analog> data);
virtual ~AnalogSignal();
- boost::shared_ptr<pv::data::SignalData> data() const;
+ std::shared_ptr<pv::data::SignalData> data() const;
- boost::shared_ptr<pv::data::Analog> analog_data() const;
+ std::shared_ptr<pv::data::Analog> analog_data() const;
void set_scale(float scale);
private:
void paint_trace(QPainter &p,
- const boost::shared_ptr<pv::data::AnalogSnapshot> &snapshot,
+ const std::shared_ptr<pv::data::AnalogSnapshot> &snapshot,
int y, int left, const int64_t start, const int64_t end,
const double pixels_offset, const double samples_per_pixel);
void paint_envelope(QPainter &p,
- const boost::shared_ptr<pv::data::AnalogSnapshot> &snapshot,
+ const std::shared_ptr<pv::data::AnalogSnapshot> &snapshot,
int y, int left, const int64_t start, const int64_t end,
const double pixels_offset, const double samples_per_pixel);
private:
- boost::shared_ptr<pv::data::Analog> _data;
+ std::shared_ptr<pv::data::Analog> _data;
float _scale;
};
#include <QRect>
#include <QRectF>
-#include <stdio.h>
+#include <cassert>
+#include <cstdio>
#include <extdef.h>
-using boost::shared_ptr;
+using std::shared_ptr;
namespace pv {
namespace view {
#include "timemarker.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QSizeF>
private:
void compute_text_size(QPainter &p, unsigned int prefix);
- boost::shared_ptr<Cursor> get_other_cursor() const;
+ std::shared_ptr<Cursor> get_other_cursor() const;
private:
QSizeF _text_size;
#include "view.h"
#include "pv/util.h"
+#include <cassert>
#include <algorithm>
-using boost::shared_ptr;
using std::max;
using std::make_pair;
using std::min;
+using std::shared_ptr;
using std::pair;
namespace pv {
#include "cursor.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QPainter>
/**
* Returns a pointer to the first cursor.
*/
- boost::shared_ptr<Cursor> first() const;
+ std::shared_ptr<Cursor> first() const;
/**
* Returns a pointer to the second cursor.
*/
- boost::shared_ptr<Cursor> second() const;
+ std::shared_ptr<Cursor> second() const;
public:
QRectF get_label_rect(const QRect &rect) const;
std::pair<float, float> get_cursor_offsets() const;
private:
- boost::shared_ptr<Cursor> _first, _second;
+ std::shared_ptr<Cursor> _first, _second;
const View &_view;
QSizeF _text_size;
#include <pv/widgets/decodergroupbox.h>
#include <pv/widgets/decodermenu.h>
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
using std::list;
using std::max;
using std::map;
using std::min;
+using std::shared_ptr;
using std::vector;
namespace pv {
};
DecodeTrace::DecodeTrace(pv::SigSession &session,
- boost::shared_ptr<pv::data::DecoderStack> decoder_stack, int index) :
+ std::shared_ptr<pv::data::DecoderStack> decoder_stack, int index) :
Trace(QString::fromUtf8(
decoder_stack->stack().front()->decoder()->name)),
_session(session),
return true;
}
-const boost::shared_ptr<pv::data::DecoderStack>& DecodeTrace::decoder() const
+const std::shared_ptr<pv::data::DecoderStack>& DecodeTrace::decoder() const
{
return _decoder_stack;
}
#include <list>
#include <map>
+#include <memory>
#include <QSignalMapper>
-#include <boost/shared_ptr.hpp>
-
#include <pv/prop/binding/decoderoptions.h>
struct srd_channel;
struct ProbeSelector
{
const QComboBox *_combo;
- const boost::shared_ptr<pv::data::decode::Decoder> _decoder;
+ const std::shared_ptr<pv::data::decode::Decoder> _decoder;
const srd_channel *_pdch;
};
public:
DecodeTrace(pv::SigSession &session,
- boost::shared_ptr<pv::data::DecoderStack> decoder_stack,
+ std::shared_ptr<pv::data::DecoderStack> decoder_stack,
int index);
bool enabled() const;
- const boost::shared_ptr<pv::data::DecoderStack>& decoder() const;
+ const std::shared_ptr<pv::data::DecoderStack>& decoder() const;
void set_view(pv::view::View *view);
int right, double samples_per_pixel, double pixels_offset);
void create_decoder_form(int index,
- boost::shared_ptr<pv::data::decode::Decoder> &dec,
+ std::shared_ptr<pv::data::decode::Decoder> &dec,
QWidget *parent, QFormLayout *form);
QComboBox* create_probe_selector(QWidget *parent,
- const boost::shared_ptr<pv::data::decode::Decoder> &dec,
+ const std::shared_ptr<pv::data::decode::Decoder> &dec,
const srd_channel *const pdch);
void commit_decoder_probes(
- boost::shared_ptr<data::decode::Decoder> &dec);
+ std::shared_ptr<data::decode::Decoder> &dec);
void commit_probes();
private:
pv::SigSession &_session;
- boost::shared_ptr<pv::data::DecoderStack> _decoder_stack;
+ std::shared_ptr<pv::data::DecoderStack> _decoder_stack;
uint64_t _decode_start, _decode_end;
- std::list< boost::shared_ptr<pv::prop::binding::DecoderOptions> >
+ std::list< std::shared_ptr<pv::prop::binding::DecoderOptions> >
_bindings;
std::list<ProbeSelector> _probe_selectors;
#include <pv/widgets/popup.h>
-using boost::shared_ptr;
using std::max;
using std::make_pair;
using std::pair;
+using std::shared_ptr;
using std::vector;
namespace pv {
const int delta = event->pos().y() - _mouse_down_point.y();
for (auto i = _drag_traces.begin(); i != _drag_traces.end(); i++) {
- const boost::shared_ptr<Trace> trace((*i).first);
+ const std::shared_ptr<Trace> trace((*i).first);
if (trace) {
const int y = (*i).second + delta;
const int y_snap =
#ifndef PULSEVIEW_PV_VIEW_HEADER_H
#define PULSEVIEW_PV_VIEW_HEADER_H
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
#include <list>
+#include <memory>
#include <utility>
#include "marginwidget.h"
QSize sizeHint() const;
private:
- boost::shared_ptr<pv::view::Trace> get_mouse_over_trace(
+ std::shared_ptr<pv::view::Trace> get_mouse_over_trace(
const QPoint &pt);
void clear_selection();
QPoint _mouse_down_point;
bool _dragging;
- std::list<std::pair<boost::weak_ptr<Trace>, int> >
+ std::list<std::pair<std::weak_ptr<Trace>, int> >
_drag_traces;
};
#include <pv/data/logicsnapshot.h>
#include <pv/view/view.h>
-using boost::shared_ptr;
using std::deque;
using std::max;
using std::min;
using std::pair;
+using std::shared_ptr;
using std::vector;
namespace pv {
#include "signal.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
class QToolBar;
static const QColor SignalColours[10];
public:
- LogicSignal(boost::shared_ptr<pv::device::DevInst> dev_inst,
+ LogicSignal(std::shared_ptr<pv::device::DevInst> dev_inst,
const sr_channel *const probe,
- boost::shared_ptr<pv::data::Logic> data);
+ std::shared_ptr<pv::data::Logic> data);
virtual ~LogicSignal();
- boost::shared_ptr<pv::data::SignalData> data() const;
+ std::shared_ptr<pv::data::SignalData> data() const;
- boost::shared_ptr<pv::data::Logic> logic_data() const;
+ std::shared_ptr<pv::data::Logic> logic_data() const;
/**
* Paints the background layer of the signal with a QPainter
void on_trigger_change();
private:
- boost::shared_ptr<pv::data::Logic> _data;
+ std::shared_ptr<pv::data::Logic> _data;
QToolBar *_trigger_bar;
QAction *_trigger_none;
#include <pv/widgets/popup.h>
using namespace Qt;
-using boost::shared_ptr;
+using std::shared_ptr;
namespace pv {
namespace view {
#ifndef PULSEVIEW_PV_VIEW_RULER_H
#define PULSEVIEW_PV_VIEW_RULER_H
-#include <boost/weak_ptr.hpp>
+#include <memory>
#include "marginwidget.h"
void hover_point_changed();
private:
- boost::weak_ptr<TimeMarker> _grabbed_marker;
+ std::weak_ptr<TimeMarker> _grabbed_marker;
QPoint _mouse_down_point;
bool _dragging;
};
#include <pv/device/devinst.h>
-using boost::shared_ptr;
+using std::shared_ptr;
namespace pv {
namespace view {
#ifndef PULSEVIEW_PV_VIEW_SIGNAL_H
#define PULSEVIEW_PV_VIEW_SIGNAL_H
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QComboBox>
#include <QWidgetAction>
Q_OBJECT
protected:
- Signal(boost::shared_ptr<pv::device::DevInst> dev_inst,
+ Signal(std::shared_ptr<pv::device::DevInst> dev_inst,
const sr_channel *const probe);
public:
*/
void set_name(QString name);
- virtual boost::shared_ptr<pv::data::SignalData> data() const = 0;
+ virtual std::shared_ptr<pv::data::SignalData> data() const = 0;
/**
* Returns true if the trace is visible and enabled.
void on_disable();
protected:
- boost::shared_ptr<pv::device::DevInst> _dev_inst;
+ std::shared_ptr<pv::device::DevInst> _dev_inst;
const sr_channel *const _probe;
QComboBox *_name_widget;
#include "pv/data/logic.h"
#include "pv/data/logicsnapshot.h"
-using boost::shared_ptr;
-using boost::weak_ptr;
using pv::data::SignalData;
using std::deque;
using std::list;
using std::min;
using std::pair;
using std::set;
+using std::shared_ptr;
using std::vector;
+using std::weak_ptr;
namespace pv {
namespace view {
#include <stdint.h>
+#include <memory>
#include <set>
#include <vector>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
#include <QAbstractScrollArea>
#include <QSizeF>
*/
void set_scale_offset(double scale, double offset);
- std::vector< boost::shared_ptr<Trace> > get_traces() const;
+ std::vector< std::shared_ptr<Trace> > get_traces() const;
- std::list<boost::weak_ptr<SelectableItem> > selected_items() const;
+ std::list<std::weak_ptr<SelectableItem> > selected_items() const;
- std::set< boost::shared_ptr<pv::data::SignalData> >
+ std::set< std::shared_ptr<pv::data::SignalData> >
get_visible_data() const;
std::pair<double, double> get_time_extents() const;
void update_layout();
static bool compare_trace_v_offsets(
- const boost::shared_ptr<pv::view::Trace> &a,
- const boost::shared_ptr<pv::view::Trace> &b);
+ const std::shared_ptr<pv::view::Trace> &a,
+ const std::shared_ptr<pv::view::Trace> &b);
private:
bool eventFilter(QObject *object, QEvent *event);
#include <QMouseEvent>
-using boost::shared_ptr;
using std::max;
using std::min;
+using std::shared_ptr;
using std::vector;
namespace pv {
#include "../../pv/sigsession.h"
#include "../../pv/view/decodetrace.h"
-using boost::shared_ptr;
using pv::data::DecoderStack;
using pv::data::decode::Decoder;
using pv::view::DecodeTrace;
+using std::shared_ptr;
using std::vector;
BOOST_AUTO_TEST_SUITE(DecoderStackTest)