Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
bt_circular_buffer< T > Class Template Reference

#include <bt_circular_buffer.h>

List of all members.

Public Member Functions

 bt_circular_buffer ()
T & pop (void)
void push (T const &data)
std::vector< T > read_all ()
int size_max ()
int size_used ()
 ~bt_circular_buffer ()

Private Member Functions

int increase_pos (int pos)

Private Attributes

int begin_pos_
int current_pos_
T * data_
size_t size_

Static Private Attributes

static const int BUFFER_SIZE = 132000

Detailed Description

template<typename T>
class bt_circular_buffer< T >

Definition at line 8 of file bt_circular_buffer.h.


Constructor & Destructor Documentation

template<typename T >
bt_circular_buffer< T >::bt_circular_buffer ( ) [inline]

Definition at line 12 of file bt_circular_buffer.h.

template<typename T >
bt_circular_buffer< T >::~bt_circular_buffer ( ) [inline]

Definition at line 25 of file bt_circular_buffer.h.


Member Function Documentation

template<typename T >
int bt_circular_buffer< T >::increase_pos ( int  pos) [inline, private]

Definition at line 109 of file bt_circular_buffer.h.

template<typename T >
T& bt_circular_buffer< T >::pop ( void  ) [inline]

Definition at line 69 of file bt_circular_buffer.h.

template<typename T >
void bt_circular_buffer< T >::push ( T const &  data) [inline]

Definition at line 30 of file bt_circular_buffer.h.

template<typename T >
std::vector<T> bt_circular_buffer< T >::read_all ( ) [inline]

Definition at line 46 of file bt_circular_buffer.h.

template<typename T >
int bt_circular_buffer< T >::size_max ( ) [inline]

Definition at line 81 of file bt_circular_buffer.h.

template<typename T >
int bt_circular_buffer< T >::size_used ( ) [inline]

Definition at line 86 of file bt_circular_buffer.h.


Member Data Documentation

template<typename T >
int bt_circular_buffer< T >::begin_pos_ [private]

Definition at line 107 of file bt_circular_buffer.h.

template<typename T >
const int bt_circular_buffer< T >::BUFFER_SIZE = 132000 [static, private]

Definition at line 101 of file bt_circular_buffer.h.

template<typename T >
int bt_circular_buffer< T >::current_pos_ [private]

Definition at line 104 of file bt_circular_buffer.h.

template<typename T >
T* bt_circular_buffer< T >::data_ [private]

Definition at line 103 of file bt_circular_buffer.h.

template<typename T >
size_t bt_circular_buffer< T >::size_ [private]

Definition at line 106 of file bt_circular_buffer.h.


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


numatac_can_driver
Author(s):
autogenerated on Thu Jun 6 2019 21:19:30