Arduino Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | List of all members
tool::ring_buffer< T, N > Class Template Reference

#include <ring_buffer.hpp>

Public Types

typedef uint16_t size_type
 
typedef uint16_t count_type
 

Public Member Functions

 ring_buffer ()
 
 ring_buffer (ring_buffer const &arg)
 
ring_bufferoperator= (ring_buffer const &rhs)
 
void push_front (T const &t)
 
void pop_front ()
 
T & operator[] (size_type const &pos)
 
T const & operator[] (size_type const &pos) const
 
T & back ()
 
T const & back () const
 
T & front ()
 
T const & front () const
 
size_type size () const
 
count_type const & count () const
 
template<typename S >
void print (S &os) const
 
template<typename Archive >
void serialize (Archive &ar)
 

Member Typedef Documentation

template<typename T , uint16_t N>
typedef uint16_t tool::ring_buffer< T, N >::count_type
template<typename T , uint16_t N>
typedef uint16_t tool::ring_buffer< T, N >::size_type

Constructor & Destructor Documentation

template<typename T , uint16_t N>
tool::ring_buffer< T, N >::ring_buffer ( )
inline
template<typename T , uint16_t N>
tool::ring_buffer< T, N >::ring_buffer ( ring_buffer< T, N > const &  arg)
inline

Member Function Documentation

template<typename T , uint16_t N>
T& tool::ring_buffer< T, N >::back ( )
inline
template<typename T , uint16_t N>
T const& tool::ring_buffer< T, N >::back ( ) const
inline
template<typename T , uint16_t N>
count_type const& tool::ring_buffer< T, N >::count ( ) const
inline
template<typename T , uint16_t N>
T& tool::ring_buffer< T, N >::front ( )
inline
template<typename T , uint16_t N>
T const& tool::ring_buffer< T, N >::front ( ) const
inline
template<typename T , uint16_t N>
ring_buffer& tool::ring_buffer< T, N >::operator= ( ring_buffer< T, N > const &  rhs)
inline
template<typename T , uint16_t N>
T& tool::ring_buffer< T, N >::operator[] ( size_type const &  pos)
inline
template<typename T , uint16_t N>
T const& tool::ring_buffer< T, N >::operator[] ( size_type const &  pos) const
inline
template<typename T , uint16_t N>
void tool::ring_buffer< T, N >::pop_front ( )
inline
template<typename T , uint16_t N>
template<typename S >
void tool::ring_buffer< T, N >::print ( S &  os) const
inline
template<typename T , uint16_t N>
void tool::ring_buffer< T, N >::push_front ( T const &  t)
inline
template<typename T , uint16_t N>
template<typename Archive >
void tool::ring_buffer< T, N >::serialize ( Archive &  ar)
inline
template<typename T , uint16_t N>
size_type tool::ring_buffer< T, N >::size ( ) const
inline

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