Radium Engine
1.5.20
|
#include <Core/Containers/AlignedAllocator.hpp>
Public Types | |
using | pointer = T* |
using | const_pointer = const T* |
using | reference = T& |
using | const_reference = const T& |
using | value_type = T |
using | size_type = std::size_t |
using | difference_type = ptrdiff_t |
Public Member Functions | |
T * | address (T &r) const |
const T * | address (const T &s) const |
std::size_t | max_size () const |
bool | operator!= (const AlignedAllocator &other) const |
void | construct (T *const p, const T &t) const |
void | destroy (T *const p) const |
bool | operator== (const AlignedAllocator &) const |
AlignedAllocator (const AlignedAllocator &) | |
template<typename U > | |
AlignedAllocator (const AlignedAllocator< U, Alignment > &) | |
T * | allocate (const std::size_t n) const |
void | deallocate (T *const p, const std::size_t) const |
template<typename U > | |
T * | allocate (const std::size_t n, const U *) const |
Allocator for aligned data. Adapted from https://gist.github.com/donny-dont/1471329 Modified from the Mallocator from Stephan T. Lavavej. http://blogs.msdn.com/b/vcblog/archive/2008/08/28/the-mallocator.aspx July 2021: use aligned_alloc (c++11) instead of platform-dependant mm_malloc
Definition at line 24 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::const_pointer = const T* |
Definition at line 29 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::const_reference = const T& |
Definition at line 31 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::difference_type = ptrdiff_t |
Definition at line 34 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::pointer = T* |
Definition at line 28 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::reference = T& |
Definition at line 30 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::size_type = std::size_t |
Definition at line 33 of file AlignedAllocator.hpp.
using Ra::Core::AlignedAllocator< T, Alignment >::value_type = T |
Definition at line 32 of file AlignedAllocator.hpp.
|
inline |
Definition at line 68 of file AlignedAllocator.hpp.
|
inline |
Definition at line 70 of file AlignedAllocator.hpp.
|
inline |
Definition at line 73 of file AlignedAllocator.hpp.
|
inline |
Definition at line 75 of file AlignedAllocator.hpp.
|
inline |
Definition at line 38 of file AlignedAllocator.hpp.
|
inline |
Definition at line 36 of file AlignedAllocator.hpp.
|
inline |
Definition at line 78 of file AlignedAllocator.hpp.
|
inline |
Definition at line 116 of file AlignedAllocator.hpp.
|
inline |
Definition at line 54 of file AlignedAllocator.hpp.
|
inline |
Definition at line 106 of file AlignedAllocator.hpp.
|
inline |
Definition at line 59 of file AlignedAllocator.hpp.
|
inline |
Definition at line 40 of file AlignedAllocator.hpp.
|
inline |
Definition at line 52 of file AlignedAllocator.hpp.
|
inline |
Definition at line 64 of file AlignedAllocator.hpp.