OmniSciDB
a5dc49c757
|
#include <FastAllocator.h>
Public Member Functions | |
FastAllocator () | |
FastAllocator (T *buffer, size_t capacity) | |
FastAllocator (FastAllocator const &)=delete | |
FastAllocator (FastAllocator &&)=delete | |
FastAllocator & | operator= (FastAllocator const &)=delete |
FastAllocator & | operator= (FastAllocator &&rhs) |
T * | allocate (size_t const n) |
size_t | available () const |
size_t | capacity () const |
Public Member Functions inherited from SimpleAllocator | |
virtual | ~SimpleAllocator ()=default |
Protected Member Functions | |
void | reset () |
Protected Attributes | |
T * | buffer_ |
size_t | capacity_ |
size_t | size_ |
std::mutex | mutex_ |
Definition at line 48 of file FastAllocator.h.
|
inline |
Definition at line 50 of file FastAllocator.h.
|
inline |
Definition at line 51 of file FastAllocator.h.
|
delete |
|
delete |
|
inlinevirtual |
Implements SimpleAllocator.
Definition at line 65 of file FastAllocator.h.
References heavyai::allocator::detail::FastAllocator< T >::available(), heavyai::allocator::detail::FastAllocator< T >::buffer_, heavyai::allocator::detail::FastAllocator< T >::capacity_, CHECK, heavyai::allocator::detail::FastAllocator< T >::mutex_, anonymous_namespace{Utm.h}::n, heavyai::allocator::detail::outOfMemoryError(), heavyai::allocator::detail::FastAllocator< T >::size_, and heavydb.dtypes::T.
|
inline |
Definition at line 76 of file FastAllocator.h.
References heavyai::allocator::detail::FastAllocator< T >::capacity_, and heavyai::allocator::detail::FastAllocator< T >::size_.
Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate().
|
inline |
Definition at line 77 of file FastAllocator.h.
References heavyai::allocator::detail::FastAllocator< T >::capacity_.
|
delete |
|
inline |
Definition at line 56 of file FastAllocator.h.
References heavyai::allocator::detail::FastAllocator< T >::buffer_, heavyai::allocator::detail::FastAllocator< T >::capacity_, and heavyai::allocator::detail::FastAllocator< T >::size_.
|
inlineprotected |
Definition at line 80 of file FastAllocator.h.
References heavyai::allocator::detail::FastAllocator< T >::buffer_, heavyai::allocator::detail::FastAllocator< T >::capacity_, and heavyai::allocator::detail::FastAllocator< T >::size_.
|
protected |
Definition at line 86 of file FastAllocator.h.
Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate(), heavyai::allocator::detail::FastAllocator< T >::operator=(), and heavyai::allocator::detail::FastAllocator< T >::reset().
|
protected |
Definition at line 87 of file FastAllocator.h.
Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate(), heavyai::allocator::detail::FastAllocator< T >::available(), heavyai::allocator::detail::FastAllocator< T >::capacity(), heavyai::allocator::detail::FastAllocator< T >::operator=(), and heavyai::allocator::detail::FastAllocator< T >::reset().
|
mutableprotected |
Definition at line 89 of file FastAllocator.h.
Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate().
|
protected |
Definition at line 88 of file FastAllocator.h.
Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate(), heavyai::allocator::detail::FastAllocator< T >::available(), heavyai::allocator::detail::FastAllocator< T >::operator=(), and heavyai::allocator::detail::FastAllocator< T >::reset().