XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTypedObject Struct Reference

#include <Variant.h>

Public Member Functions

 XII_DECLARE_POD_TYPE ()
bool operator== (const xiiTypedObject &rhs) const

Public Attributes

const void * m_pObject = nullptr
const xiiRTTI * m_pType = nullptr

Detailed Description

Defines a reference to an immutable object owned by a xiiVariant.

Used to store custom types inside a xiiVariant. As lifetime is governed by the xiiVariant, it is generally not safe to store a xiiTypedObject. This class is needed to be able to differentiate between xiiVariantType::TypedPointer and xiiVariantType::TypedObject e.g. in xiiVariant::DispatchTo.

See also
xiiVariant, XII_DECLARE_CUSTOM_VARIANT_TYPE

The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Types/Variant.h