fifo_cache< T > Class Template Reference

#include <fifo_cache.h>

Inheritance diagram for fifo_cache< T >:

Public Member Functions

const T * data (boost::uint64_t id) const
 
 fifo_cache (std::size_t max_size)
 
bool is_full () const
 
T * pop ()
 
void push (boost::uint64_t id, T *data)
 
 ~fifo_cache ()
 

Private Attributes

std::vector< boost::uint64_t > m_fifo
 
std::size_t m_fifo_idx
 
std::map< boost::uint64_t, T * > m_fifos
 
std::size_t m_max_size
 
std::size_t m_size
 

Detailed Description

template<class T>
class fifo_cache< T >

Definition at line 13 of file fifo_cache.h.

Constructor & Destructor Documentation

template<class T >
fifo_cache< T >::fifo_cache ( std::size_t  max_size)
inline

Definition at line 38 of file fifo_cache.h.

References fifo_cache< T >::m_fifo.

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

Definition at line 46 of file fifo_cache.h.

Member Function Documentation

template<class T >
const T * fifo_cache< T >::data ( boost::uint64_t  id) const
inline

Member Data Documentation

template<class T>
std::vector<boost::uint64_t> fifo_cache< T >::m_fifo
private
template<class T>
std::size_t fifo_cache< T >::m_fifo_idx
private

Definition at line 35 of file fifo_cache.h.

Referenced by fifo_cache< T >::pop(), and fifo_cache< T >::push().

template<class T>
std::map<boost::uint64_t, T*> fifo_cache< T >::m_fifos
private

Definition at line 31 of file fifo_cache.h.

Referenced by fifo_cache< T >::data(), fifo_cache< T >::pop(), and fifo_cache< T >::push().

template<class T>
std::size_t fifo_cache< T >::m_max_size
private

Definition at line 34 of file fifo_cache.h.

Referenced by fifo_cache< T >::is_full(), and fifo_cache< T >::push().

template<class T>
std::size_t fifo_cache< T >::m_size
private

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