APM:Libraries
Public Member Functions | Private Attributes | List of all members
ObjectArray< T > Class Template Reference

#include <RingBuffer.h>

Public Member Functions

 ObjectArray (uint16_t size_)
 
 ~ObjectArray (void)
 
uint16_t size (void) const
 
uint16_t available (void) const
 
uint16_t space (void) const
 
bool empty (void) const
 
bool push (const T &object)
 
bool pop (void)
 
void clear (void)
 
bool pop (T &object)
 
bool push_force (const T &object)
 
bool remove (uint16_t n)
 
T * operator[] (uint16_t i)
 

Private Attributes

T * _buffer
 
uint16_t _size
 
uint16_t _count
 
uint16_t _head
 

Detailed Description

template<class T>
class ObjectArray< T >

Definition at line 209 of file RingBuffer.h.

Constructor & Destructor Documentation

◆ ObjectArray()

template<class T>
ObjectArray< T >::ObjectArray ( uint16_t  size_)
inline

Definition at line 211 of file RingBuffer.h.

◆ ~ObjectArray()

template<class T>
ObjectArray< T >::~ObjectArray ( void  )
inline

Definition at line 216 of file RingBuffer.h.

Member Function Documentation

◆ available()

template<class T>
uint16_t ObjectArray< T >::available ( void  ) const
inline

Definition at line 226 of file RingBuffer.h.

◆ clear()

template<class T>
void ObjectArray< T >::clear ( void  )
inline

Definition at line 263 of file RingBuffer.h.

◆ empty()

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

Definition at line 236 of file RingBuffer.h.

Referenced by AP_Frsky_Telem::get_next_msg_chunk().

Here is the caller graph for this function:

◆ operator[]()

template<class T>
T* ObjectArray< T >::operator[] ( uint16_t  i)
inline

Definition at line 317 of file RingBuffer.h.

◆ pop() [1/2]

template<class T>
bool ObjectArray< T >::pop ( void  )
inline

Definition at line 253 of file RingBuffer.h.

◆ pop() [2/2]

template<class T>
bool ObjectArray< T >::pop ( T &  object)
inline

Definition at line 271 of file RingBuffer.h.

◆ push()

template<class T>
bool ObjectArray< T >::push ( const T &  object)
inline

Definition at line 241 of file RingBuffer.h.

◆ push_force()

template<class T>
bool ObjectArray< T >::push_force ( const T &  object)
inline

Definition at line 284 of file RingBuffer.h.

Referenced by AP_Frsky_Telem::queue_message().

Here is the caller graph for this function:

◆ remove()

template<class T>
bool ObjectArray< T >::remove ( uint16_t  n)
inline

Definition at line 294 of file RingBuffer.h.

Referenced by AP_Frsky_Telem::get_next_msg_chunk().

Here is the caller graph for this function:

◆ size()

template<class T>
uint16_t ObjectArray< T >::size ( void  ) const
inline

Definition at line 221 of file RingBuffer.h.

◆ space()

template<class T>
uint16_t ObjectArray< T >::space ( void  ) const
inline

Definition at line 231 of file RingBuffer.h.

Member Data Documentation

◆ _buffer

template<class T>
T* ObjectArray< T >::_buffer
private

Definition at line 325 of file RingBuffer.h.

◆ _count

template<class T>
uint16_t ObjectArray< T >::_count
private

Definition at line 327 of file RingBuffer.h.

◆ _head

template<class T>
uint16_t ObjectArray< T >::_head
private

Definition at line 328 of file RingBuffer.h.

◆ _size

template<class T>
uint16_t ObjectArray< T >::_size
private

Definition at line 326 of file RingBuffer.h.


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