5#include <Foundation/Reflection/Implementation/AbstractProperty.h>
6#include <Foundation/Reflection/Implementation/StaticRTTI.h>
13template <
typename Type>
21 m_Flags = plPropertyFlags::GetParameterFlags<Type>();
28 return plGetStaticRTTI<typename plTypeTraits<Type>::NonConstReferenceType>();
36template <
typename Type>
This is the base class for all constant properties that are stored inside the RTTI data.
Definition AbstractProperty.h:213
[internal] An implementation of plTypedConstantProperty that accesses the property data directly.
Definition ConstantProperty.h:38
virtual void * GetPropertyPointer() const override
Returns a pointer to the member property.
Definition ConstantProperty.h:49
plConstantProperty(const char *szPropertyName, Type value)
Constructor.
Definition ConstantProperty.h:41
virtual Type GetValue() const override
Returns the value of the property. Pass the instance pointer to the surrounding class along.
Definition ConstantProperty.h:52
virtual plVariant GetConstant() const override
Returns the constant value as an plVariant.
Definition ConstantProperty.h:57
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
The base class for all typed member properties. Ie. once the type of a property is determined,...
Definition ConstantProperty.h:15
virtual const plRTTI * GetSpecificType() const override
Returns the actual type of the property. You can then compare that with known types,...
Definition ConstantProperty.h:26
plTypedConstantProperty(const char *szPropertyName)
Passes the property name through to plAbstractMemberProperty.
Definition ConstantProperty.h:18
virtual Type GetValue() const =0
Returns the value of the property. Pass the instance pointer to the surrounding class along.
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
PL_ALWAYS_INLINE bool IsSet(Enum flag) const
Checks if certain flags are set within the bitfield.
Definition Bitflags.h:127
@ StandardType
Anything that can be stored inside an plVariant except for pointers and containers.
Definition AbstractProperty.h:53