CommonLibSSE NG
Loading...
Searching...
No Matches
GArrayLH.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/G/GAllocator.h"
4#include "RE/G/GArrayBase.h"
5#include "RE/G/GArrayData.h"
7#include "RE/G/GStats.h"
8
9namespace RE
10{
11 template <class T, std::uint32_t SID = GStatGroup::kGStat_Default_Mem, class SizePolicy = GArrayDefaultPolicy>
12 class GArrayLH : public GArrayBase<GArrayData<T, GAllocatorLH<T, SID>, SizePolicy>>
13 {
14 public:
15 using ValueType = T;
17 using SizePolicyType = SizePolicy;
20
22 BaseType()
23 {}
24
25 GArrayLH(std::int32_t a_size) :
26 BaseType(a_size)
27 {}
28
29 GArrayLH(const SizePolicyType& a_policy) :
30 BaseType()
31 {
32 SetSizePolicy(a_policy);
33 }
34
35 GArrayLH(const SelfType& a_array) :
36 BaseType(a_array)
37 {}
38
39 const SelfType& operator=(const SelfType& a_array)
40 {
41 BaseType::operator=(a_array);
42 return *this;
43 }
44 };
45 static_assert(sizeof(GArrayLH<void*>) == 0x18);
46}
Definition GArrayBase.h:11
const SelfType & operator=(const SelfType &a_array)
Definition GArrayBase.h:385
void SetSizePolicy(const SizePolicyType &a_policy)
Definition GArrayBase.h:271
Definition GArrayLH.h:13
SizePolicy SizePolicyType
Definition GArrayLH.h:17
const SelfType & operator=(const SelfType &a_array)
Definition GArrayLH.h:39
GArrayLH()
Definition GArrayLH.h:21
T ValueType
Definition GArrayLH.h:15
GArrayLH(std::int32_t a_size)
Definition GArrayLH.h:25
GArrayLH(const SizePolicyType &a_policy)
Definition GArrayLH.h:29
GArrayLH(const SelfType &a_array)
Definition GArrayLH.h:35
Definition AbsorbEffect.h:6
Definition GAllocator.h:16