PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::data::Logic Class Reference

#include <logic.hpp>

Inheritance diagram for pv::data::Logic:
Collaboration diagram for pv::data::Logic:

Signals

void samples_cleared ()
 
void samples_added (SharedPtrToSegment segment, uint64_t start_sample, uint64_t end_sample)
 
- Signals inherited from pv::data::SignalData
void segment_completed ()
 

Public Member Functions

 Logic (unsigned int num_channels)
 
unsigned int num_channels () const
 
void push_segment (shared_ptr< LogicSegment > &segment)
 
const deque< shared_ptr< LogicSegment > > & logic_segments () const
 
deque< shared_ptr< LogicSegment > > & logic_segments ()
 
vector< shared_ptr< Segment > > segments () const
 
uint32_t get_segment_count () const
 
void clear ()
 
void set_samplerate (double value)
 
double get_samplerate () const
 
uint64_t max_sample_count () const
 
void notify_samples_added (shared_ptr< Segment > segment, uint64_t start_sample, uint64_t end_sample)
 
- Public Member Functions inherited from pv::data::SignalData
 SignalData ()=default
 
virtual ~SignalData ()=default
 

Private Slots

void on_segment_completed ()
 

Private Attributes

double samplerate_
 
const unsigned int num_channels_
 
deque< shared_ptr< LogicSegment > > segments_
 

Detailed Description

Definition at line 39 of file logic.hpp.

Constructor & Destructor Documentation

pv::data::Logic::Logic ( unsigned int  num_channels)

Definition at line 33 of file logic.cpp.

Member Function Documentation

void pv::data::Logic::clear ( )
virtual

Implements pv::data::SignalData.

Definition at line 76 of file logic.cpp.

double pv::data::Logic::get_samplerate ( ) const
virtual

Implements pv::data::SignalData.

Definition at line 90 of file logic.cpp.

uint32_t pv::data::Logic::get_segment_count ( ) const
virtual

Implements pv::data::SignalData.

Definition at line 71 of file logic.cpp.

const deque< shared_ptr< LogicSegment > > & pv::data::Logic::logic_segments ( ) const

Definition at line 56 of file logic.cpp.

Here is the caller graph for this function:

deque< shared_ptr< LogicSegment > > & pv::data::Logic::logic_segments ( )

Definition at line 61 of file logic.cpp.

uint64_t pv::data::Logic::max_sample_count ( ) const
virtual

Implements pv::data::SignalData.

Definition at line 95 of file logic.cpp.

Here is the call graph for this function:

void pv::data::Logic::notify_samples_added ( shared_ptr< Segment segment,
uint64_t  start_sample,
uint64_t  end_sample 
)

Definition at line 105 of file logic.cpp.

Here is the caller graph for this function:

unsigned int pv::data::Logic::num_channels ( ) const

Definition at line 41 of file logic.cpp.

Here is the caller graph for this function:

void pv::data::Logic::on_segment_completed ( )
privateslot

Definition at line 111 of file logic.cpp.

Here is the caller graph for this function:

void pv::data::Logic::push_segment ( shared_ptr< LogicSegment > &  segment)

Definition at line 46 of file logic.cpp.

Here is the call graph for this function:

void pv::data::Logic::samples_added ( SharedPtrToSegment  segment,
uint64_t  start_sample,
uint64_t  end_sample 
)
signal

Definition at line 164 of file moc_logic.cpp.

Here is the caller graph for this function:

void pv::data::Logic::samples_cleared ( )
signal

Definition at line 158 of file moc_logic.cpp.

Here is the caller graph for this function:

vector< shared_ptr< Segment > > pv::data::Logic::segments ( ) const
virtual

Implements pv::data::SignalData.

Definition at line 66 of file logic.cpp.

void pv::data::Logic::set_samplerate ( double  value)
virtual

Implements pv::data::SignalData.

Definition at line 85 of file logic.cpp.

Here is the call graph for this function:

Member Data Documentation

const unsigned int pv::data::Logic::num_channels_
private

Definition at line 79 of file logic.hpp.

double pv::data::Logic::samplerate_
private

Definition at line 78 of file logic.hpp.

deque< shared_ptr<LogicSegment> > pv::data::Logic::segments_
private

Definition at line 80 of file logic.hpp.


The documentation for this class was generated from the following files: