Plasma Engine  2.0
Loading...
Searching...
No Matches
TypedPointer.h
1#pragma once
2
3#include <Foundation/Types/TypeTraits.h>
4
5class plRTTI;
6
13{
14 PL_DECLARE_POD_TYPE();
15 void* m_pObject = nullptr;
16 const plRTTI* m_pType = nullptr;
17
18 plTypedPointer() = default;
19 plTypedPointer(void* pObject, const plRTTI* pType)
20 : m_pObject(pObject)
21 , m_pType(pType)
22 {
23 }
24
25 bool operator==(const plTypedPointer& rhs) const
26 {
27 return m_pObject == rhs.m_pObject;
28 }
29 bool operator!=(const plTypedPointer& rhs) const
30 {
31 return m_pObject != rhs.m_pObject;
32 }
33};
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
A typed raw pointer.
Definition TypedPointer.h:13