PulseView  0.3.0
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:

Public Member Functions

 Logic (unsigned int num_channels)
 
unsigned int num_channels () const
 
void push_segment (std::shared_ptr< LogicSegment > &segment)
 
const std::deque< std::shared_ptr< LogicSegment > > & logic_segments () const
 
std::vector< std::shared_ptr< Segment > > segments () const
 
void clear ()
 
uint64_t max_sample_count () const
 
- Public Member Functions inherited from pv::data::SignalData
 SignalData ()
 
virtual ~SignalData ()
 

Private Attributes

const unsigned int num_channels_
 
std::deque< std::shared_ptr< LogicSegment > > segments_
 

Detailed Description

Definition at line 33 of file logic.hpp.

Constructor & Destructor Documentation

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

Definition at line 34 of file logic.cpp.

Member Function Documentation

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

Implements pv::data::SignalData.

Definition at line 63 of file logic.cpp.

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

Definition at line 52 of file logic.cpp.

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

Implements pv::data::SignalData.

Definition at line 68 of file logic.cpp.

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

Definition at line 41 of file logic.cpp.

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

Definition at line 46 of file logic.cpp.

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

Implements pv::data::SignalData.

Definition at line 57 of file logic.cpp.

Member Data Documentation

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

Definition at line 53 of file logic.hpp.

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

Definition at line 54 of file logic.hpp.


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