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 76 of file push_and_pop_fixed.hpp.
typedef formatters::PushAndPopFormatter<Type,Size> ecl::PushAndPop< Type, Size >::Formatter |
Formatter for this class.
Definition at line 79 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 81 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 89 of file push_and_pop_fixed.hpp.
|
inlinevirtual |
Definition at line 98 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 157 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 169 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 147 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 111 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 101 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 106 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 139 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 127 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 175 of file push_and_pop_fixed.hpp.
|
inline |
Definition at line 162 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 181 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 184 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 183 of file push_and_pop_fixed.hpp.
|
private |
Definition at line 182 of file push_and_pop_fixed.hpp.