SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Public Attributes | List of all members
ScopeVis::TraceBackBuffer Struct Reference
+ Collaboration diagram for ScopeVis::TraceBackBuffer:

Public Member Functions

 TraceBackBuffer ()
 
void resize (uint32_t size)
 
void reset ()
 
void write (const SampleVector::const_iterator begin, const SampleVector::const_iterator end)
 
unsigned int absoluteFill () const
 
SampleVector::iterator current ()
 
QByteArray serialize () const
 
bool deserialize (const QByteArray &data)
 

Public Attributes

TraceBuffer m_traceBuffer
 
SampleVector::iterator m_endPoint
 

Detailed Description

Definition at line 633 of file scopevis.h.

Constructor & Destructor Documentation

◆ TraceBackBuffer()

ScopeVis::TraceBackBuffer::TraceBackBuffer ( )
inline

Definition at line 638 of file scopevis.h.

References DoubleBufferSimple< T >::getCurrent().

639  {
641  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
SampleVector::iterator m_endPoint
Definition: scopevis.h:636
std::vector< T >::iterator getCurrent() const
Definition: doublebuffer.h:93
+ Here is the call graph for this function:

Member Function Documentation

◆ absoluteFill()

unsigned int ScopeVis::TraceBackBuffer::absoluteFill ( ) const
inline

Definition at line 658 of file scopevis.h.

References DoubleBufferSimple< T >::absoluteFill().

658  {
659  return m_traceBuffer.absoluteFill();
660  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
unsigned int absoluteFill() const
Definition: doublebuffer.h:96
+ Here is the call graph for this function:

◆ current()

SampleVector::iterator ScopeVis::TraceBackBuffer::current ( )
inline

Definition at line 662 of file scopevis.h.

References DoubleBufferSimple< T >::getCurrent().

Referenced by ScopeVis::processTrace().

662 { return m_traceBuffer.getCurrent(); }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
std::vector< T >::iterator getCurrent() const
Definition: doublebuffer.h:93
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deserialize()

bool ScopeVis::TraceBackBuffer::deserialize ( const QByteArray &  data)
inline

Definition at line 676 of file scopevis.h.

References DoubleBufferSimple< T >::begin(), DoubleBufferSimple< T >::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), SimpleDeserializer::readBlob(), and SimpleDeserializer::readU32().

677  {
678  SimpleDeserializer d(data);
679 
680  if(!d.isValid()) {
681  return false;
682  }
683 
684  if (d.getVersion() == 1)
685  {
686  unsigned int tmpUInt;
687  QByteArray buf;
688 
689  d.readU32(1, &tmpUInt, 0);
690  d.readBlob(2, &buf);
692  m_endPoint = m_traceBuffer.begin() + tmpUInt;
693 
694  return true;
695  }
696  else
697  {
698  return false;
699  }
700  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
std::vector< T >::const_iterator begin() const
Definition: doublebuffer.h:94
bool deserialize(const QByteArray &data)
Definition: doublebuffer.h:111
SampleVector::iterator m_endPoint
Definition: scopevis.h:636
+ Here is the call graph for this function:

◆ reset()

void ScopeVis::TraceBackBuffer::reset ( )
inline

Definition at line 648 of file scopevis.h.

References DoubleBufferSimple< T >::reset().

Referenced by ScopeVis::TraceBackDiscreteMemory::store().

649  {
651  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resize()

void ScopeVis::TraceBackBuffer::resize ( uint32_t  size)
inline

Definition at line 643 of file scopevis.h.

References DoubleBufferSimple< T >::resize().

644  {
645  m_traceBuffer.resize(size);
646  }
void resize(int size)
Definition: doublebuffer.h:59
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
+ Here is the call graph for this function:

◆ serialize()

QByteArray ScopeVis::TraceBackBuffer::serialize ( ) const
inline

Definition at line 664 of file scopevis.h.

References DoubleBufferSimple< T >::begin(), SimpleSerializer::final(), DoubleBufferSimple< T >::serialize(), SimpleSerializer::writeBlob(), and SimpleSerializer::writeU32().

665  {
666  SimpleSerializer s(1);
667 
668  QByteArray buffer = m_traceBuffer.serialize();
669  unsigned int endDelta = m_endPoint - m_traceBuffer.begin();
670  s.writeU32(1, endDelta);
671  s.writeBlob(2, buffer);
672 
673  return s.final();
674  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
std::vector< T >::const_iterator begin() const
Definition: doublebuffer.h:94
SampleVector::iterator m_endPoint
Definition: scopevis.h:636
QByteArray serialize() const
Definition: doublebuffer.h:99
+ Here is the call graph for this function:

◆ write()

void ScopeVis::TraceBackBuffer::write ( const SampleVector::const_iterator  begin,
const SampleVector::const_iterator  end 
)
inline

Definition at line 653 of file scopevis.h.

References DoubleBufferSimple< T >::write().

Referenced by ScopeVis::processTrace().

654  {
655  m_traceBuffer.write(begin, end);
656  }
TraceBuffer m_traceBuffer
Definition: scopevis.h:635
void write(const typename std::vector< T >::const_iterator &begin, const typename std::vector< T >::const_iterator &cend)
Definition: doublebuffer.h:66
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_endPoint

SampleVector::iterator ScopeVis::TraceBackBuffer::m_endPoint

Definition at line 636 of file scopevis.h.

Referenced by ScopeVis::processMemoryTrace(), and ScopeVis::processTrace().

◆ m_traceBuffer

TraceBuffer ScopeVis::TraceBackBuffer::m_traceBuffer

Definition at line 635 of file scopevis.h.


The documentation for this struct was generated from the following file: