Public Member Functions | Private Attributes
ecl::PushAndPop< T, Size > Class Template Reference

Surpport fixed array and push and pack operation It provide some useful functions such as push, back, size. More...

#include <push_and_pop_fixed.hpp>

List of all members.

Public Member Functions

unsigned int asize ()
void clear ()
void fill (const T &d)
void operator() (const PushAndPop< T, Size > &otherOne)
T & operator[] (int idx)
const T & operator[] (int idx) const
pop_front ()
void push_back (const T &datum)
 PushAndPop ()
 PushAndPop (const T &d) ecl_assert_throw_decl(StandardException)
void showMe ()
unsigned int size () const
virtual ~PushAndPop ()

Private Attributes

ecl::Array< T, Size+1 > data
int follower
int leader
unsigned int size_fifo

Detailed Description

template<typename T, std::size_t Size = DynamicStorage>
class ecl::PushAndPop< T, Size >

Surpport fixed array and push and pack operation It provide some useful functions such as push, back, size.

Note:

Usage:

 @code
See also:
ecl::Array.

Definition at line 60 of file push_and_pop_fixed.hpp.


Constructor & Destructor Documentation

template<typename T, std::size_t Size = DynamicStorage>
ecl::PushAndPop< T, Size >::PushAndPop ( ) [inline]

Definition at line 63 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
ecl::PushAndPop< T, Size >::PushAndPop ( const T &  d) [inline]

Definition at line 71 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
virtual ecl::PushAndPop< T, Size >::~PushAndPop ( ) [inline, virtual]

Definition at line 80 of file push_and_pop_fixed.hpp.


Member Function Documentation

template<typename T, std::size_t Size = DynamicStorage>
unsigned int ecl::PushAndPop< T, Size >::asize ( ) [inline]

To get the assigned buffer size while size() return number of data in fifo

Returns:
assigned buffer size

Definition at line 132 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
void ecl::PushAndPop< T, Size >::clear ( ) [inline]

Definition at line 144 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
void ecl::PushAndPop< T, Size >::fill ( const T &  d) [inline]

Definition at line 122 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
void ecl::PushAndPop< T, Size >::operator() ( const PushAndPop< T, Size > &  otherOne) [inline]

Definition at line 92 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
T& ecl::PushAndPop< T, Size >::operator[] ( int  idx) [inline]

Definition at line 82 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
const T& ecl::PushAndPop< T, Size >::operator[] ( int  idx) const [inline]

Definition at line 87 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
T ecl::PushAndPop< T, Size >::pop_front ( ) [inline]

Definition at line 114 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
void ecl::PushAndPop< T, Size >::push_back ( const T &  datum) [inline]

Definition at line 102 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
void ecl::PushAndPop< T, Size >::showMe ( ) [inline]

Definition at line 150 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
unsigned int ecl::PushAndPop< T, Size >::size ( ) const [inline]

Definition at line 137 of file push_and_pop_fixed.hpp.


Member Data Documentation

template<typename T, std::size_t Size = DynamicStorage>
ecl::Array<T,Size+1> ecl::PushAndPop< T, Size >::data [private]

Definition at line 156 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
int ecl::PushAndPop< T, Size >::follower [private]

Definition at line 159 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
int ecl::PushAndPop< T, Size >::leader [private]

Definition at line 158 of file push_and_pop_fixed.hpp.

template<typename T, std::size_t Size = DynamicStorage>
unsigned int ecl::PushAndPop< T, Size >::size_fifo [private]

Definition at line 157 of file push_and_pop_fixed.hpp.


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


ecl_containers
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Thu Jan 2 2014 11:12:25