mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Mark method as const, fix typo in doc
This commit is contained in:
parent
4877ffff80
commit
ec4c4b7ee4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user