Home | History | Annotate | Download | only in utils

Lines Matching defs:LinearAllocator

43 class LinearAllocator {
45 LinearAllocator();
46 ~LinearAllocator();
52 * The lifetime of the returned buffers is tied to that of the LinearAllocator. If calling
95 * Attempt to deallocate the given buffer, with the LinearAllocator attempting to rewind its
114 * The number of bytes used for buffers allocated in the LinearAllocator (does not count space
120 LinearAllocator(const LinearAllocator& other);
160 LinearStdAllocator(LinearAllocator& allocator)
161 : linearAllocator(allocator) {}
163 : linearAllocator(other.linearAllocator) {}
174 : linearAllocator(other.linearAllocator) {}
177 return (T*)(linearAllocator.alloc<void*>(num * sizeof(T)));
182 linearAllocator.rewindIfLastAlloc(p, num * sizeof(T));
186 LinearAllocator& linearAllocator;