#ifndef FRAMEWORK_CONTAINER_FIFO_H_ #define FRAMEWORK_CONTAINER_FIFO_H_ #include #include namespace fsfw { /** * @brief Simple First-In-First-Out data structure. The maximum size * can be set in the constructor. * @details * The maximum capacity can be determined at run-time, so this container * performs dynamic memory allocation! * The public interface of FIFOBase exposes the user interface for the FIFO. * @tparam T Entry Type * @tparam capacity Maximum capacity */ template class FIFO: public FIFOBase { public: FIFO(size_t maxCapacity): FIFOBase(values.data(), maxCapacity), values(maxCapacity) {}; private: std::vector values; }; } #endif /* FRAMEWORK_CONTAINER_FIFO_H_ */