Sirikata
Public Types | Public Member Functions | Private Attributes
Sirikata::Queue< ElementType, SizeFunctorType > Class Template Reference

Queue with maximum bytes of storage. More...

#include <Queue.hpp>

Inheritance diagram for Sirikata::Queue< ElementType, SizeFunctorType >:
Collaboration diagram for Sirikata::Queue< ElementType, SizeFunctorType >:

List of all members.

Public Types

typedef ElementType Type

Public Member Functions

 Queue (uint32 max_size)
 ~Queue ()
QueueEnum::PushResult push (const ElementType &msg)
const ElementType & front () const
ElementType & front ()
ElementType pop ()
bool empty () const
uint32 maxSize () const
uint32 size () const

Private Attributes

std::deque< ElementType > mElements
SizeFunctorType mSizeFunctor
uint32 mMaxSize
uint32 mSize

Detailed Description

template<typename ElementType, typename SizeFunctorType = MethodSizeFunctor<ElementType>>
class Sirikata::Queue< ElementType, SizeFunctorType >

Queue with maximum bytes of storage.


Member Typedef Documentation

template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
typedef ElementType Sirikata::Queue< ElementType, SizeFunctorType >::Type

Constructor & Destructor Documentation

template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
Sirikata::Queue< ElementType, SizeFunctorType >::Queue ( uint32  max_size) [inline]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
Sirikata::Queue< ElementType, SizeFunctorType >::~Queue ( ) [inline]

Member Function Documentation

template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
bool Sirikata::Queue< ElementType, SizeFunctorType >::empty ( ) const [inline, virtual]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
const ElementType& Sirikata::Queue< ElementType, SizeFunctorType >::front ( ) const [inline, virtual]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
ElementType& Sirikata::Queue< ElementType, SizeFunctorType >::front ( ) [inline, virtual]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
uint32 Sirikata::Queue< ElementType, SizeFunctorType >::maxSize ( ) const [inline]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
ElementType Sirikata::Queue< ElementType, SizeFunctorType >::pop ( ) [inline, virtual]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
QueueEnum::PushResult Sirikata::Queue< ElementType, SizeFunctorType >::push ( const ElementType &  msg) [inline, virtual]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
uint32 Sirikata::Queue< ElementType, SizeFunctorType >::size ( ) const [inline, virtual]

Member Data Documentation

template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
std::deque<ElementType> Sirikata::Queue< ElementType, SizeFunctorType >::mElements [private]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
uint32 Sirikata::Queue< ElementType, SizeFunctorType >::mMaxSize [private]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
uint32 Sirikata::Queue< ElementType, SizeFunctorType >::mSize [private]
template<typename ElementType , typename SizeFunctorType = MethodSizeFunctor<ElementType>>
SizeFunctorType Sirikata::Queue< ElementType, SizeFunctorType >::mSizeFunctor [private]

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