$search
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>
Public Member Functions | |
| unsigned int | asize () |
| void | clear () |
| void | fill (const T &d) |
| void | operator() (const PushAndPop< T, Size > &otherOne) |
| const T & | operator[] (int idx) const |
| T & | operator[] (int idx) |
| T | pop_front () |
| void | push_back (const T &datum) |
| PushAndPop (const T &d) ecl_assert_throw_decl(StandardException) | |
| PushAndPop () | |
| void | showMe () |
| unsigned int | size () const |
| virtual | ~PushAndPop () |
Private Attributes | |
| ecl::Array< T, Size+1 > | data |
| int | follower |
| int | leader |
| unsigned int | size_fifo |
Surpport fixed array and push and pack operation It provide some useful functions such as push, back, size.
Usage:
@code
Definition at line 60 of file push_and_pop_fixed.hpp.
| ecl::PushAndPop< T, Size >::PushAndPop | ( | ) | [inline] |
Definition at line 63 of file push_and_pop_fixed.hpp.
| ecl::PushAndPop< T, Size >::PushAndPop | ( | const T & | d | ) | [inline] |
Definition at line 71 of file push_and_pop_fixed.hpp.
| virtual ecl::PushAndPop< T, Size >::~PushAndPop | ( | ) | [inline, virtual] |
Definition at line 80 of file push_and_pop_fixed.hpp.
| unsigned int ecl::PushAndPop< T, Size >::asize | ( | ) | [inline] |
To get the assigned buffer size while size() return number of data in fifo
Definition at line 132 of file push_and_pop_fixed.hpp.
| void ecl::PushAndPop< T, Size >::clear | ( | ) | [inline] |
Definition at line 144 of file push_and_pop_fixed.hpp.
| void ecl::PushAndPop< T, Size >::fill | ( | const T & | d | ) | [inline] |
Definition at line 122 of file push_and_pop_fixed.hpp.
| void ecl::PushAndPop< T, Size >::operator() | ( | const PushAndPop< T, Size > & | otherOne | ) | [inline] |
Definition at line 92 of file push_and_pop_fixed.hpp.
| const T& ecl::PushAndPop< T, Size >::operator[] | ( | int | idx | ) | const [inline] |
Definition at line 87 of file push_and_pop_fixed.hpp.
| T& ecl::PushAndPop< T, Size >::operator[] | ( | int | idx | ) | [inline] |
Definition at line 82 of file push_and_pop_fixed.hpp.
| T ecl::PushAndPop< T, Size >::pop_front | ( | ) | [inline] |
Definition at line 114 of file push_and_pop_fixed.hpp.
| void ecl::PushAndPop< T, Size >::push_back | ( | const T & | datum | ) | [inline] |
Definition at line 102 of file push_and_pop_fixed.hpp.
| void ecl::PushAndPop< T, Size >::showMe | ( | ) | [inline] |
Definition at line 150 of file push_and_pop_fixed.hpp.
| unsigned int ecl::PushAndPop< T, Size >::size | ( | ) | const [inline] |
Definition at line 137 of file push_and_pop_fixed.hpp.
ecl::Array<T,Size+1> ecl::PushAndPop< T, Size >::data [private] |
Definition at line 156 of file push_and_pop_fixed.hpp.
int ecl::PushAndPop< T, Size >::follower [private] |
Definition at line 159 of file push_and_pop_fixed.hpp.
int ecl::PushAndPop< T, Size >::leader [private] |
Definition at line 158 of file push_and_pop_fixed.hpp.
unsigned int ecl::PushAndPop< T, Size >::size_fifo [private] |
Definition at line 157 of file push_and_pop_fixed.hpp.