Lines Matching refs:_allocator
812 MemoryAllocator _allocator;
815 PointerArray(MemoryAllocator allocator) : _count(0), _capacity(0), _buffer(NULL), _allocator(allocator) {}
816 ~PointerArray() { if (_buffer) _allocator.deallocate_memory(_buffer, _capacity * sizeof(void *)); }
831 _buffer = (void **) _allocator.allocate_memory(page_size);
835 void **new_buffer = (void **) _allocator.allocate_memory(old_size * 2);
840 _allocator.copy_memory(new_buffer, _buffer, old_size);
841 _allocator.deallocate_memory(_buffer, old_size);
851 void **new_buffer = (void **) _allocator.allocate_memory(_capacity * sizeof(void*));
858 _allocator.copy_memory(new_buffer, _buffer, old_size);
860 _allocator.deallocate_memory(_buffer, old_size);
902 MemoryAllocator _allocator;
917 _current = (PointerChunk *)_allocator.allocate_memory(sizeof(PointerChunk));
931 PointerQueue(MemoryAllocator allocator) : _allocator(allocator), _head(NULL), _tail(NULL), _current(NULL), _cursor(NULL), _limit(NULL), _count(0) {}
937 _allocator.deallocate_memory(chunk, sizeof(PointerChunk));