All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Protected Attributes | List of all members
CFreeIndexStorage< T > Class Template Reference

#include <freeindexstorage.h>

Inheritance diagram for CFreeIndexStorage< T >:
Inheritance graph
Collaboration diagram for CFreeIndexStorage< T >:
Collaboration graph

Classes

struct  TGlobalVar
 

Public Member Functions

 CFreeIndexStorage ()
 
void Init (uint32_t ui32StartIndex, uint32_t ui32EndIndex, char *pcMemName, bool bCheckForInUse=true, bool bRandomFill=false)
 
bool SetEntry (uint16_t ui16Index, T &tItem)
 
bool FillEntry (uint16_t ui16Index, T &tItem)
 
bool RemoveEntry (uint16_t ui16Index)
 
bool ClearEntry (uint16_t ui16Index)
 
bool SearchEntry (T tItem, uint16_t &ui16Index)
 
bool SearchAndRemoveEntry (T tItem)
 
bool GetFreeIndex (uint16_t &ui16Index)
 
bool GetFreeIndexAndSet (uint16_t &ui16Index, T &tItem)
 
bool ReturnIndex (uint16_t ui16Index)
 
GetEntry (uint16_t ui16Index)
 
T * GetEntryPointer (uint16_t ui16Index)
 
void Reset ()
 
void Close ()
 
uint32_t GetNrOfEntries ()
 
- Public Member Functions inherited from CMpFifo< uint16_t >
void Init (uint32_t ulNrOfItems, char *pMemName=NULL)
 
uint16_t * Init (uint32_t ulNrOfItems, TPointers *ptPointers, uint16_t ui32FPAPool)
 
bool Push (uint16_t &tElement, uint16_t *ptFifoArray=NULL, TPointers *ptPointers=NULL)
 
bool Pop (uint16_t *ptElement, uint16_t *ptFifoArray=NULL, TPointers *ptPointers=NULL)
 
bool Shuffle (uint16_t *ptFifoArray=NULL, TPointers *ptPointers=NULL)
 
void Close (uint16_t **ptFifoArray=NULL, TPointers *ptPointers=NULL)
 
bool GetItem (uint16_t *ptItem, bool bFirst=false, uint16_t *ptFifoArray=NULL, TPointers *ptPointers=NULL)
 
uint32_t NrOfItems (TPointers *ptPointers=NULL)
 

Protected Attributes

uint32_t m_ui32StartIndex
 
uint32_t m_ui32EndIndex
 
uint32_t m_ui32MaxNrOfEntries
 
bool m_bCheckForInUse
 
CCoremask m_cCoreMask
 
T * m_ptItemsStorage
 
boolm_pInUseStorage
 
TGlobalVarm_pGlobalVarStorage
 
char m_cMemName [80]
 
char m_cFifoMemName [80]
 

Detailed Description

template<typename T>
class CFreeIndexStorage< T >

Definition at line 33 of file freeindexstorage.h.

Constructor & Destructor Documentation

template<class T >
CFreeIndexStorage< T >::CFreeIndexStorage ( )

Definition at line 73 of file freeindexstorage.h.

Member Function Documentation

template<class T >
bool CFreeIndexStorage< T >::ClearEntry ( uint16_t  ui16Index)

Definition at line 209 of file freeindexstorage.h.

template<class T >
void CFreeIndexStorage< T >::Close ( )

Definition at line 373 of file freeindexstorage.h.

template<typename T>
bool CFreeIndexStorage< T >::FillEntry ( uint16_t  ui16Index,
T &  tItem 
)
template<class T >
T CFreeIndexStorage< T >::GetEntry ( uint16_t  ui16Index)

Definition at line 304 of file freeindexstorage.h.

template<class T >
T * CFreeIndexStorage< T >::GetEntryPointer ( uint16_t  ui16Index)

Definition at line 327 of file freeindexstorage.h.

template<class T >
bool CFreeIndexStorage< T >::GetFreeIndex ( uint16_t &  ui16Index)

Definition at line 140 of file freeindexstorage.h.

template<class T>
bool CFreeIndexStorage< T >::GetFreeIndexAndSet ( uint16_t &  ui16Index,
T &  tItem 
)

Definition at line 153 of file freeindexstorage.h.

template<class T >
uint32_t CFreeIndexStorage< T >::GetNrOfEntries ( )

Definition at line 349 of file freeindexstorage.h.

template<class T >
void CFreeIndexStorage< T >::Init ( uint32_t  ui32StartIndex,
uint32_t  ui32EndIndex,
char pcMemName,
bool  bCheckForInUse = true,
bool  bRandomFill = false 
)

Definition at line 78 of file freeindexstorage.h.

template<class T >
bool CFreeIndexStorage< T >::RemoveEntry ( uint16_t  ui16Index)

Definition at line 228 of file freeindexstorage.h.

template<class T >
void CFreeIndexStorage< T >::Reset ( )

Definition at line 358 of file freeindexstorage.h.

template<class T >
bool CFreeIndexStorage< T >::ReturnIndex ( uint16_t  ui16Index)

Definition at line 167 of file freeindexstorage.h.

template<class T>
bool CFreeIndexStorage< T >::SearchAndRemoveEntry ( tItem)

Definition at line 279 of file freeindexstorage.h.

template<class T>
bool CFreeIndexStorage< T >::SearchEntry ( tItem,
uint16_t &  ui16Index 
)

Definition at line 254 of file freeindexstorage.h.

template<class T>
bool CFreeIndexStorage< T >::SetEntry ( uint16_t  ui16Index,
T &  tItem 
)

Definition at line 189 of file freeindexstorage.h.

Member Data Documentation

template<typename T>
bool CFreeIndexStorage< T >::m_bCheckForInUse
protected

Definition at line 64 of file freeindexstorage.h.

template<typename T>
CCoremask CFreeIndexStorage< T >::m_cCoreMask
protected

Definition at line 65 of file freeindexstorage.h.

template<typename T>
char CFreeIndexStorage< T >::m_cFifoMemName[80]
protected

Definition at line 70 of file freeindexstorage.h.

template<typename T>
char CFreeIndexStorage< T >::m_cMemName[80]
protected

Definition at line 69 of file freeindexstorage.h.

template<typename T>
TGlobalVar* CFreeIndexStorage< T >::m_pGlobalVarStorage
protected

Definition at line 68 of file freeindexstorage.h.

template<typename T>
bool* CFreeIndexStorage< T >::m_pInUseStorage
protected

Definition at line 67 of file freeindexstorage.h.

template<typename T>
T* CFreeIndexStorage< T >::m_ptItemsStorage
protected

Definition at line 66 of file freeindexstorage.h.

template<typename T>
uint32_t CFreeIndexStorage< T >::m_ui32EndIndex
protected

Definition at line 62 of file freeindexstorage.h.

template<typename T>
uint32_t CFreeIndexStorage< T >::m_ui32MaxNrOfEntries
protected

Definition at line 63 of file freeindexstorage.h.

template<typename T>
uint32_t CFreeIndexStorage< T >::m_ui32StartIndex
protected

Definition at line 61 of file freeindexstorage.h.


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