Plasma Engine  2.0
Loading...
Searching...
No Matches
plTypedObject Struct Reference

Defines a reference to an immutable object owned by an plVariant. More...

#include <Variant.h>

Public Member Functions

 PL_DECLARE_POD_TYPE ()
 
bool operator== (const plTypedObject &rhs) const
 
 PL_ADD_DEFAULT_OPERATOR_NOTEQUAL (const plTypedObject &)
 

Public Attributes

const void * m_pObject = nullptr
 
const plRTTIm_pType = nullptr
 

Detailed Description

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

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

See also
plVariant, PL_DECLARE_CUSTOM_VARIANT_TYPE

The documentation for this struct was generated from the following file: