X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.cpp;h=e23283ac2952e23c3f87f0945e7fc91c5ce6b970;hb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;hp=9bcfd0a382ac39c020d396007d07a4e1885fbef8;hpb=d9aecf1fcd9af471db3b59de7efc65b9632a6d79;p=pulseview.git diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index 9bcfd0a3..e23283ac 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -18,26 +18,28 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "logic.h" #include "logicsnapshot.h" -using boost::shared_ptr; using std::deque; using std::max; +using std::shared_ptr; namespace pv { namespace data { -Logic::Logic(unsigned int num_probes) : +Logic::Logic(unsigned int num_channels) : SignalData(), - _num_probes(num_probes) + _num_channels(num_channels) { - assert(_num_probes > 0); + assert(_num_channels > 0); } -int Logic::get_num_probes() const +int Logic::get_num_channels() const { - return _num_probes; + return _num_channels; } void Logic::push_snapshot( @@ -59,7 +61,7 @@ void Logic::clear() uint64_t Logic::get_max_sample_count() const { uint64_t l = 0; - for (boost::shared_ptr s : _snapshots) { + for (std::shared_ptr s : _snapshots) { assert(s); l = max(l, s->get_sample_count()); }