Surpport push and pack operation. More...
#include <push_and_pop_fixed.hpp>
Public Types | |
typedef formatters::PushAndPopFormatter< Type, Size > | Formatter |
Formatter for this class. More... | |
Public Member Functions | |
unsigned int | asize () |
void | clear () |
void | fill (const Type &d) |
void | operator() (const PushAndPop< Type, Size > &otherOne) |
Type & | operator[] (int idx) |
const Type & | operator[] (int idx) const |
Type | pop_front () |
void | push_back (const Type &datum) |
Pushes an element onto the back of the container. More... | |
PushAndPop () | |
PushAndPop (const Type &d) | |
void | showMe () |
unsigned int | size () const |
virtual | ~PushAndPop () |
Private Attributes | |
ecl::Array< Type, Size+1 > | data |
int | follower |
int | leader |
unsigned int | size_fifo |
Surpport push and pack operation.
ACHTUNG! ACHTUNG! ACHTUNG! ACHTUNG! ACHTUNG! ACHTUNG! ACHTUNG!
This is very experimental and has a few unfinished, surprising. automatic behaviours.
Usage:
Definition at line 82 of file push_and_pop_fixed.hpp.
typedef formatters::PushAndPopFormatter<Type,Size> ecl::PushAndPop< Type, Size >::Formatter |
Formatter for this class.
Definition at line 87 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 89 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 97 of file push_and_pop_fixed.hpp.
|
inlinevirtual |
Definition at line 106 of file push_and_pop_fixed.hpp.
|
inline |
To get the assigned buffer size while size() return number of data in fifo
Definition at line 165 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 177 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 155 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 119 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 109 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 114 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 147 of file push_and_pop_fixed.hpp.
|
inline |
Pushes an element onto the back of the container.
If there is no empty room, it simply makes room by popping an element of the front.
Definition at line 135 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 183 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 170 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 189 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 192 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 191 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 190 of file push_and_pop_fixed.hpp.