GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
Public Member Functions | List of all members
Gnss_circular_deque< T > Class Template Reference

Public Member Functions

 Gnss_circular_deque ()
 Default constructor. More...
 
 Gnss_circular_deque (unsigned int max_size, unsigned int nchann)
 nchann = number of channels; max_size = channel capacity More...
 
unsigned int size (unsigned int ch)
 Returns the number of available elements in a channel. More...
 
T & at (unsigned int ch, unsigned int pos)
 Returns a reference to an element with bount checking. More...
 
const T & get (unsigned int ch, unsigned int pos) const
 Returns a const reference to an element without bound checking. More...
 
T & front (unsigned int ch)
 Returns a reference to the first element in the deque. More...
 
T & back (unsigned int ch)
 Returns a reference to the last element in the deque. More...
 
void push_back (unsigned int ch, const T &new_data)
 Inserts an element at the end of the deque. More...
 
void pop_front (unsigned int ch)
 Removes the first element of the deque. More...
 
void clear (unsigned int ch)
 Removes all the elements of the deque (Sets size to 0). Capacity is not modified. More...
 
void reset (unsigned int max_size, unsigned int nchann)
 Removes all the elements in all the channels. Re-sets the number of channels and their capacity. More...
 
void reset ()
 Removes all the channels (Sets nchann to 0) More...
 

Detailed Description

template<class T>
class Gnss_circular_deque< T >

Definition at line 28 of file gnss_circular_deque.h.

Constructor & Destructor Documentation

◆ Gnss_circular_deque() [1/2]

template<class T >
Gnss_circular_deque< T >::Gnss_circular_deque ( )

Default constructor.

Definition at line 50 of file gnss_circular_deque.h.

◆ Gnss_circular_deque() [2/2]

template<class T >
Gnss_circular_deque< T >::Gnss_circular_deque ( unsigned int  max_size,
unsigned int  nchann 
)

nchann = number of channels; max_size = channel capacity

Definition at line 57 of file gnss_circular_deque.h.

Member Function Documentation

◆ at()

template<class T >
T & Gnss_circular_deque< T >::at ( unsigned int  ch,
unsigned int  pos 
)

Returns a reference to an element with bount checking.

Definition at line 85 of file gnss_circular_deque.h.

◆ back()

template<class T >
T & Gnss_circular_deque< T >::back ( unsigned int  ch)

Returns a reference to the last element in the deque.

Definition at line 71 of file gnss_circular_deque.h.

◆ clear()

template<class T >
void Gnss_circular_deque< T >::clear ( unsigned int  ch)

Removes all the elements of the deque (Sets size to 0). Capacity is not modified.

Definition at line 99 of file gnss_circular_deque.h.

◆ front()

template<class T >
T & Gnss_circular_deque< T >::front ( unsigned int  ch)

Returns a reference to the first element in the deque.

Definition at line 78 of file gnss_circular_deque.h.

◆ get()

template<class T >
const T & Gnss_circular_deque< T >::get ( unsigned int  ch,
unsigned int  pos 
) const

Returns a const reference to an element without bound checking.

Definition at line 92 of file gnss_circular_deque.h.

◆ pop_front()

template<class T >
void Gnss_circular_deque< T >::pop_front ( unsigned int  ch)

Removes the first element of the deque.

Definition at line 127 of file gnss_circular_deque.h.

◆ push_back()

template<class T>
void Gnss_circular_deque< T >::push_back ( unsigned int  ch,
const T &  new_data 
)

Inserts an element at the end of the deque.

Definition at line 134 of file gnss_circular_deque.h.

◆ reset() [1/2]

template<class T >
void Gnss_circular_deque< T >::reset ( unsigned int  max_size,
unsigned int  nchann 
)

Removes all the elements in all the channels. Re-sets the number of channels and their capacity.

Definition at line 106 of file gnss_circular_deque.h.

◆ reset() [2/2]

template<class T >
void Gnss_circular_deque< T >::reset ( )

Removes all the channels (Sets nchann to 0)

Definition at line 120 of file gnss_circular_deque.h.

◆ size()

template<class T >
unsigned int Gnss_circular_deque< T >::size ( unsigned int  ch)

Returns the number of available elements in a channel.

Definition at line 64 of file gnss_circular_deque.h.


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