Plasma Engine  2.0
Loading...
Searching...
No Matches
HybridArray_inl.h
1#include <Foundation/Containers/HybridArray.h>
2
3template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
5 : plDynamicArray<T, AllocatorWrapper>(GetStaticArray(), Size, AllocatorWrapper::GetAllocator())
6{
7}
8
9template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
11 : plDynamicArray<T, AllocatorWrapper>(GetStaticArray(), Size, pAllocator)
12{
13}
14
15template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
17 : plDynamicArray<T, AllocatorWrapper>(GetStaticArray(), Size, AllocatorWrapper::GetAllocator())
19 *this = other;
20}
22template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
24 : plDynamicArray<T, AllocatorWrapper>(GetStaticArray(), Size, AllocatorWrapper::GetAllocator())
25{
26 *this = other;
28
29template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
31 : plDynamicArray<T, AllocatorWrapper>(GetStaticArray(), Size, other.GetAllocator())
32{
33 *this = std::move(other);
34}
35
36template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
41
42template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
47
48template <typename T, plUInt32 Size, typename AllocatorWrapper /*= plDefaultAllocatorWrapper*/>
Base class for all memory allocators.
Definition Allocator.h:23
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition DynamicArray.h:81
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
void operator=(const plHybridArray< T, Size, AllocatorWrapper > &rhs)
Copies the data from some other contiguous array into this one.
Definition HybridArray_inl.h:37
plHybridArray()
Creates an empty array. Does not allocate any data yet.
Definition HybridArray_inl.h:4