1 #ifndef INC_CircularQueue_hpp__
2 #define INC_CircularQueue_hpp__
16 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
21 #define OFFSET_MAX_RESIZE 5000
36 inline void clear(
void )
43 inline T elementAt(
size_t idx )
const
45 return storage[idx+m_offset];
51 storage.erase( storage.begin(), storage.begin() + m_offset + 1 );
57 inline void removeItems(
size_t nb )
73 storage.erase( storage.begin(), storage.begin() + m_offset + nb );
79 inline void append(
const T& t)
83 inline size_t entries()
const
85 return storage.size() - m_offset;
93 const CircularQueue& operator=(const CircularQueue&);
96 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
100 #endif //INC_CircularQueue_hpp__