#ifndef RINGBUFFER_H #define RINGBUFFER_H namespace icinga { class I2_BASE_API Ringbuffer { public: Ringbuffer(long slots); int GetLength(void) const; void InsertValue(long tv, int num); int GetValues(long span) const; private: vector m_Slots; vector::size_type m_Offset; }; } #endif /* RINGBUFFER_H */