|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Reflection/TypeInfo.hpp>
Public Member Functions | |
| virtual void | copy (void *target, const void *source) const =0 |
Copies the object from source to target. | |
Protected Member Functions | |
| ~CopyableTypeTrait ()=default | |
|
protecteddefault |
|
pure virtual |
Copies the object from source to target.
| target | The memory address to initialize a copy of the object. This must point to a memory address with at least size bytes and uninitialized. |
| source | The memory address to copy from. Must point to an initialized object of the same type. |
nullptr if the type is not copy constructible. Implemented in CeresEngine::ReferenceTypeInfo, CeresEngine::PointerTypeInfo, CeresEngine::ConstTypeInfo, CeresEngine::ArrayTypeInfo, CeresEngine::MemberPointerTypeInfo, CeresEngine::PrimitiveTypeInfo, CeresEngine::NullTypeInfo, and CeresEngine::ByteTypeInfo.