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
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ class Gnss_circular_deque
public:
Gnss_circular_deque(); //!< Default constructor
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
T& at(unsigned int ch, unsigned int pos); //!< Returns a reference to an element with bount checking
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 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& 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>
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();
}