CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
GArrayConstPolicy.h
Go to the documentation of this file.
1#pragma once
2
3namespace RE
4{
5 template <std::int32_t MinCapacity = 0, std::int32_t Granularity = 4, bool NeverShrink = false>
7 {
8 public:
10
12 capacity(0)
13 {}
14
16 capacity(0)
17 {}
18
19 UPInt GetMinCapacity() const { return MinCapacity; }
20 UPInt GetGranularity() const { return Granularity; }
21 bool NeverShrinking() const { return NeverShrink; }
22
23 UPInt GetCapacity() const { return capacity; }
24 void SetCapacity(UPInt a_capacity) { capacity = a_capacity; }
25
26 // members
28 };
29 static_assert(sizeof(GArrayDefaultPolicy) == 0x8);
30}
Definition: AbsorbEffect.h:6
std::size_t UPInt
Definition: SFTypes.h:5
Definition: GArrayConstPolicy.h:7
UPInt capacity
Definition: GArrayConstPolicy.h:27
UPInt GetCapacity() const
Definition: GArrayConstPolicy.h:23
GArrayConstPolicy()
Definition: GArrayConstPolicy.h:11
UPInt GetMinCapacity() const
Definition: GArrayConstPolicy.h:19
void SetCapacity(UPInt a_capacity)
Definition: GArrayConstPolicy.h:24
bool NeverShrinking() const
Definition: GArrayConstPolicy.h:21
UPInt GetGranularity() const
Definition: GArrayConstPolicy.h:20
GArrayConstPolicy(const SelfType &)
Definition: GArrayConstPolicy.h:15
Definition: GArrayDefaultPolicy.h:6