45 return storage[idx+m_offset];
49 if (m_offset >= OFFSET_MAX_RESIZE)
51 storage.erase( storage.begin(), storage.begin() + m_offset + 1 );
57 inline void removeItems(
size_t nb )
71 if (m_offset >= OFFSET_MAX_RESIZE)
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;
89 ANTLR_USE_NAMESPACE(std)vector<T> storage;
92 CircularQueue(
const CircularQueue&);
93 const CircularQueue& operator=(
const CircularQueue&);