OpenCPN Partial API docs
Loading...
Searching...
No Matches
circular_buffer< T > Class Template Reference

Public Member Functions

 circular_buffer (size_t size)
 
void reset ()
 
size_t capacity () const
 
size_t size () const
 
bool empty () const
 
bool full () const
 
void put (T item)
 
get ()
 
 circular_buffer (size_t size)
 
void reset ()
 
size_t capacity () const
 
size_t size () const
 
bool empty () const
 
bool full () const
 
void put (T item)
 
get ()
 

Detailed Description

template<class T>
class circular_buffer< T >

Definition at line 135 of file comm_drv_n0183_serial.cpp.

Constructor & Destructor Documentation

◆ circular_buffer() [1/2]

template<class T >
circular_buffer< T >::circular_buffer ( size_t  size)
inlineexplicit

Definition at line 137 of file comm_drv_n0183_serial.cpp.

◆ circular_buffer() [2/2]

template<class T >
circular_buffer< T >::circular_buffer ( size_t  size)
inlineexplicit

Definition at line 82 of file comm_drv_n2k_serial.cpp.

Member Function Documentation

◆ empty() [1/2]

template<class T >
bool circular_buffer< T >::empty ( ) const
inline

Definition at line 144 of file comm_drv_n0183_serial.cpp.

◆ empty() [2/2]

template<class T >
bool circular_buffer< T >::empty ( ) const
inline

Definition at line 89 of file comm_drv_n2k_serial.cpp.

◆ full() [1/2]

template<class T >
bool circular_buffer< T >::full ( ) const
inline

Definition at line 149 of file comm_drv_n0183_serial.cpp.

◆ full() [2/2]

template<class T >
bool circular_buffer< T >::full ( ) const
inline

Definition at line 94 of file comm_drv_n2k_serial.cpp.

◆ get() [1/2]

template<class T >
T circular_buffer< T >::get ( )
inline

Definition at line 164 of file comm_drv_n0183_serial.cpp.

◆ get() [2/2]

template<class T >
T circular_buffer< T >::get ( )
inline

Definition at line 109 of file comm_drv_n2k_serial.cpp.

◆ put() [1/2]

template<class T >
void circular_buffer< T >::put ( item)
inline

Definition at line 154 of file comm_drv_n0183_serial.cpp.

◆ put() [2/2]

template<class T >
void circular_buffer< T >::put ( item)
inline

Definition at line 99 of file comm_drv_n2k_serial.cpp.


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