CommonLibSSE NG
GArrayDefaultPolicy.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
6  {
7  public:
9  capacity(0)
10  {}
11 
13  capacity(0)
14  {}
15 
16  UPInt GetMinCapacity() const { return 0; }
17  UPInt GetGranularity() const { return 4; }
18  bool NeverShrinking() const { return false; }
19 
20  UPInt GetCapacity() const { return capacity; }
21  void SetCapacity(UPInt a_capacity) { capacity = a_capacity; }
22 
23  // members
25  };
26  static_assert(sizeof(GArrayDefaultPolicy) == 0x8);
27 }
Definition: AbsorbEffect.h:6
std::size_t UPInt
Definition: SFTypes.h:5
Definition: GArrayDefaultPolicy.h:6
GArrayDefaultPolicy(const GArrayDefaultPolicy &)
Definition: GArrayDefaultPolicy.h:12
UPInt GetMinCapacity() const
Definition: GArrayDefaultPolicy.h:16
UPInt GetCapacity() const
Definition: GArrayDefaultPolicy.h:20
void SetCapacity(UPInt a_capacity)
Definition: GArrayDefaultPolicy.h:21
UPInt capacity
Definition: GArrayDefaultPolicy.h:24
bool NeverShrinking() const
Definition: GArrayDefaultPolicy.h:18
GArrayDefaultPolicy()
Definition: GArrayDefaultPolicy.h:8
UPInt GetGranularity() const
Definition: GArrayDefaultPolicy.h:17