GNU Radio's DVBS2RX Package
gr::dvbs2rx::cdeque< T > Class Template Reference

#include <cdeque.h>

Inheritance diagram for gr::dvbs2rx::cdeque< T >:

Public Member Functions

 cdeque (unsigned int len, unsigned int n_reps=10)
 
void push_back (const T &in)
 Push new element into the ring buffer's back (tail).
 
void push_front (const T &in)
 Push new element into the ring buffer's front (head).
 
const T & back () const
 Access the element at the back of the queue.
 
const T & front () const
 Access the element at the front of the queue.
 
unsigned int length () const
 Get length L of the queue.
 

Constructor & Destructor Documentation

◆ cdeque()

template<typename T >
gr::dvbs2rx::cdeque< T >::cdeque ( unsigned int  len,
unsigned int  n_reps = 10 
)
inlineexplicit

Number of L-length segment repetitions

Member Function Documentation

◆ back()

template<typename T >
const T & gr::dvbs2rx::cdeque< T >::back ( ) const
inline

Access the element at the back of the queue.

Returns
Reference to the back element.

Referenced by gr::dvbs2rx::frame_sync::get_plheader().

◆ front()

template<typename T >
const T & gr::dvbs2rx::cdeque< T >::front ( ) const
inline

Access the element at the front of the queue.

Returns
Reference to the front element.

◆ length()

template<typename T >
unsigned int gr::dvbs2rx::cdeque< T >::length ( ) const
inline

Get length L of the queue.

Returns
Queue length.

◆ push_back()

template<typename T >
void gr::dvbs2rx::cdeque< T >::push_back ( const T &  in)
inline

Push new element into the ring buffer's back (tail).

Move the ring buffer counterclockwise before and then push the given element on the new tail index.

Parameters
inNew element.

Referenced by gr::dvbs2rx::delay_line< T >::push().

◆ push_front()

template<typename T >
void gr::dvbs2rx::cdeque< T >::push_front ( const T &  in)
inline

Push new element into the ring buffer's front (head).

Move the ring buffer clockwise before and then push the given element on the new head index.

Parameters
inNew element.

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