projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide notifiers for when signal data changes
[pulseview.git]
/
pv
/
data
/
logicsegment.hpp
diff --git
a/pv/data/logicsegment.hpp
b/pv/data/logicsegment.hpp
index 43fd41126617bd0b9d76dbc0f8bbf7875c5569bd..a7a38ebefa7761a7929073272d5e7dcabf1b0361 100644
(file)
--- a/
pv/data/logicsegment.hpp
+++ b/
pv/data/logicsegment.hpp
@@
-25,6
+25,8
@@
#include <utility>
#include <vector>
#include <utility>
#include <vector>
+#include <QObject>
+
namespace sigrok {
class Logic;
}
namespace sigrok {
class Logic;
}
@@
-40,14
+42,18
@@
struct LongPulses;
namespace pv {
namespace data {
namespace pv {
namespace data {
+class Logic;
+
typedef struct {
uint64_t sample_index, chunk_num, chunk_offs;
uint8_t* chunk;
uint8_t* value;
} SegmentLogicDataIterator;
typedef struct {
uint64_t sample_index, chunk_num, chunk_offs;
uint8_t* chunk;
uint8_t* value;
} SegmentLogicDataIterator;
-class LogicSegment : public Segment
+class LogicSegment : public
QObject, public
Segment
{
{
+ Q_OBJECT
+
private:
struct MipMapLevel
{
private:
struct MipMapLevel
{
@@
-67,7
+73,7
@@
public:
typedef std::pair<int64_t, bool> EdgePair;
public:
typedef std::pair<int64_t, bool> EdgePair;
public:
- LogicSegment(
std::shared_ptr<sigrok::Logic> logic
, uint64_t samplerate);
+ LogicSegment(
pv::data::Logic& owner, std::shared_ptr<sigrok::Logic> data
, uint64_t samplerate);
virtual ~LogicSegment();
virtual ~LogicSegment();
@@
-110,6
+116,8
@@
private:
static uint64_t pow2_ceil(uint64_t x, unsigned int power);
private:
static uint64_t pow2_ceil(uint64_t x, unsigned int power);
private:
+ Logic& owner_;
+
struct MipMapLevel mip_map_[ScaleStepCount];
uint64_t last_append_sample_;
struct MipMapLevel mip_map_[ScaleStepCount];
uint64_t last_append_sample_;