The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
mha_rt_fifo_element_t< T > Class Template Reference

Object wrapper for mha_rt_fifo_t. More...

Public Member Functions

 mha_rt_fifo_element_t (T *data)
 Constructor. More...
 
 ~mha_rt_fifo_element_t ()
 

Public Attributes

mha_rt_fifo_element_t< T > * next
 Pointer to next fifo element. NULL for the last (newest) fifo element. More...
 
bool abandonned
 Indicates that this element will no longer be used and may be deleted. More...
 
T * data
 Pointer to user data. More...
 

Detailed Description

template<class T>
class mha_rt_fifo_element_t< T >

Object wrapper for mha_rt_fifo_t.

Constructor & Destructor Documentation

◆ mha_rt_fifo_element_t()

template<class T >
mha_rt_fifo_element_t< T >::mha_rt_fifo_element_t ( T *  data)
inline

Constructor.

This element assumes ownership of user data.

Parameters
dataUser data. Has to be allocated on the heap with standard operator new, because it will be deleted in this element's destructor.

◆ ~mha_rt_fifo_element_t()

template<class T >
mha_rt_fifo_element_t< T >::~mha_rt_fifo_element_t ( )
inline

Member Data Documentation

◆ next

template<class T >
mha_rt_fifo_element_t<T>* mha_rt_fifo_element_t< T >::next

Pointer to next fifo element. NULL for the last (newest) fifo element.

◆ abandonned

template<class T >
bool mha_rt_fifo_element_t< T >::abandonned

Indicates that this element will no longer be used and may be deleted.

◆ data

template<class T >
T* mha_rt_fifo_element_t< T >::data

Pointer to user data.


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