| 27 | public: |
| 28 | |
| 29 | b2StackQueue(b2StackAllocator *allocator, int32 capacity) |
| 30 | { |
| 31 | m_allocator = allocator; |
| 32 | m_buffer = (T*) m_allocator->Allocate(sizeof(T) * capacity); |
| 33 | m_front = 0; |
| 34 | m_back = 0; |
| 35 | m_capacity = capacity; |
| 36 | } |
| 37 | |
| 38 | ~b2StackQueue() |
| 39 | { |