CommonLibVR
GRefCountImplCore.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
6  {
7  public:
8  inline static constexpr auto RTTI = RTTI_GRefCountImplCore;
9  inline static constexpr auto VTABLE = VTABLE_GRefCountImplCore;
10 
11  virtual ~GRefCountImplCore() = default; // 00
12 
14 
15  [[nodiscard]] constexpr std::uint32_t GetRefCount() const noexcept { return _refCount; }
16 
17  protected:
18  // members
19  volatile std::uint32_t _refCount{ 1 }; // 08
20  std::uint32_t _pad0C{ 0 }; // 0C
21  private:
22  KEEP_FOR_RE()
23  };
24  static_assert(sizeof(GRefCountImplCore) == 0x10);
25 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: GRefCountImplCore.h:6
virtual ~GRefCountImplCore()=default
static constexpr auto VTABLE
Definition: GRefCountImplCore.h:9
static void CheckInvalidDelete(GRefCountImplCore *)
Definition: GRefCountImplCore.h:13
volatile std::uint32_t _refCount
Definition: GRefCountImplCore.h:19
std::uint32_t _pad0C
Definition: GRefCountImplCore.h:20
constexpr std::uint32_t GetRefCount() const noexcept
Definition: GRefCountImplCore.h:15
static constexpr auto RTTI
Definition: GRefCountImplCore.h:8
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_GRefCountImplCore
Definition: Offsets_VTABLE.h:11710
constexpr REL::ID RTTI_GRefCountImplCore(static_cast< std::uint64_t >(686408))