X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.cpp;h=e23283ac2952e23c3f87f0945e7fc91c5ce6b970;hb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;hp=d13cd766cc69f9eabfed4930ab6c4550ce9a7808;hpb=a007f5ad25bad88cf62443d5471449ce8a6f5f29;p=pulseview.git diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index d13cd766..e23283ac 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -18,27 +18,28 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include #include "logic.h" #include "logicsnapshot.h" -using namespace boost; -using namespace std; +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( @@ -60,7 +61,7 @@ void Logic::clear() uint64_t Logic::get_max_sample_count() const { uint64_t l = 0; - BOOST_FOREACH(boost::shared_ptr s, _snapshots) { + for (std::shared_ptr s : _snapshots) { assert(s); l = max(l, s->get_sample_count()); }