1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Mark method as const, fix typo in doc

This commit is contained in:
Carles Fernandez 2020-08-21 00:31:46 +02:00
parent 4877ffff80
commit ec4c4b7ee4
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -30,8 +30,8 @@ class Gnss_circular_deque
public: public:
Gnss_circular_deque(); //!< Default constructor Gnss_circular_deque(); //!< Default constructor
Gnss_circular_deque(unsigned int max_size, unsigned int nchann); //!< nchann = number of channels; max_size = channel capacity Gnss_circular_deque(unsigned int max_size, unsigned int nchann); //!< nchann = number of channels; max_size = channel capacity
unsigned int size(unsigned int ch); //!< Returns the number of available elements in a channel unsigned int size(unsigned int ch) const; //!< Returns the number of available elements in a channel
T& at(unsigned int ch, unsigned int pos); //!< Returns a reference to an element with bount checking T& at(unsigned int ch, unsigned int pos); //!< Returns a reference to an element with bound checking
const T& get(unsigned int ch, unsigned int pos) const; //!< Returns a const reference to an element without bound checking const T& get(unsigned int ch, unsigned int pos) const; //!< Returns a const reference to an element without bound checking
T& front(unsigned int ch); //!< Returns a reference to the first element in the deque T& front(unsigned int ch); //!< Returns a reference to the first element in the deque
T& back(unsigned int ch); //!< Returns a reference to the last element in the deque T& back(unsigned int ch); //!< Returns a reference to the last element in the deque
@ -61,7 +61,7 @@ Gnss_circular_deque<T>::Gnss_circular_deque(unsigned int max_size, unsigned int
template <class T> template <class T>
unsigned int Gnss_circular_deque<T>::size(unsigned int ch) unsigned int Gnss_circular_deque<T>::size(unsigned int ch) const
{ {
return d_data[ch].size(); return d_data[ch].size();
} }