projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop unused boost-thread dependency.
[pulseview.git]
/
pv
/
data
/
analog.cpp
diff --git
a/pv/data/analog.cpp
b/pv/data/analog.cpp
index ca2659b175815aa02e05711f4d22b5724bf768bd..854dae3e68eaaec8d71212219365323abcefbbe8 100644
(file)
--- a/
pv/data/analog.cpp
+++ b/
pv/data/analog.cpp
@@
-14,8
+14,7
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <cassert>
*/
#include <cassert>
@@
-55,17
+54,25
@@
vector< shared_ptr<Segment> > Analog::segments() const
void Analog::clear()
{
segments_.clear();
void Analog::clear()
{
segments_.clear();
+
+ samples_cleared();
}
uint64_t Analog::max_sample_count() const
{
uint64_t l = 0;
}
uint64_t Analog::max_sample_count() const
{
uint64_t l = 0;
- for (const s
td::s
hared_ptr<AnalogSegment> s : segments_) {
+ for (const shared_ptr<AnalogSegment> s : segments_) {
assert(s);
l = max(l, s->get_sample_count());
}
return l;
}
assert(s);
l = max(l, s->get_sample_count());
}
return l;
}
+void Analog::notify_samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample)
+{
+ samples_added(segment, start_sample, end_sample);
+}
+
} // namespace data
} // namespace pv
} // namespace data
} // namespace pv