X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.cpp;h=e23283ac2952e23c3f87f0945e7fc91c5ce6b970;hb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;hp=167c79bd3cf2ef49e1e9db77a4f1070b38084aac;hpb=819f4c25391a9c74d3d2f528d462142d5c4aad4d;p=pulseview.git diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index 167c79b..e23283a 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -18,28 +18,28 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#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( @@ -61,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()); }