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 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {}
161 LinearStdAllocator(const LinearStdAllocator& other) : linearAllocator(other.linearAllocator) {}
172 : linearAllocator(other.linearAllocator) {}
175 return (T*)(linearAllocator.alloc<void*>(num * sizeof(T)));
180 linearAllocator.rewindIfLastAlloc(p, num * sizeof(T));
184 LinearAllocator& linearAllocator;