struct ISerialized

Inherits: IReflectable

Base class for all data types used in intermediate IReflectable object representation.

Public

Methods

~ISerialized

virtual ~ISerialized() noexcept = default

Clone

virtual SPtr<ISerialized> Clone(bool cloneData = true) = 0

Performs a deep clone of this object any any potential child objects.

cloneData
If true the data contained by the objects will be cloned as well, instead of just meta-data. If false then both the original and the cloned instances will point to the same instances of data. The original will retain data ownership and it will go out of scope when the original does.

CalculateHash

virtual u64 CalculateHash() const = 0

Calculates the hash value of the contained data.

Equals

virtual bool Equals(const SPtr<ISerialized> &other) const = 0

Checks if this value matches the other provided value.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.