CFiFo< T, N > Class Template Reference
Cyclic memory first-in first-out container. More...
#include <cfifo.hpp>
Public Member Functions | |
int | size (void) const |
void | clear (void) |
void | push (const T &x) |
const T & | operator[] (int i) const |
Access i:th object from the input. More... | |
Detailed Description
template<class T, int N>
class CFiFo< T, N >
Cyclic memory first-in first-out container.
The container has space for N class T type objects. The container is operated as first-in first-out. There is not need to empty the fifo as the oldest objects are overwritten when the fifo gets full.
Member Function Documentation
◆ operator[]()
template<class T , int N>
|
inline |
Access i:th object from the input.
Object 0 is the newest one in the fifo. Throws an ErrorRange exception if trying to access non-existing object.
The documentation for this class was generated from the following file: