![]() |
Murl Engine API
Version 2024.1
|
Object deep copy functions. More...
Functions | |
template<class DataType > | |
DataType * | PlacementNew (DataType *dstPtr) |
Placement new an object with default constructor. More... | |
template<class DataType > | |
DataType * | PlacementNew (DataType *dstPtr, const DataType &value) |
Placement new and copy construct an object. More... | |
template<class DataType > | |
void | PlacementNewArray (DataType *dstPtr, const DataType *dstEnd) |
Placement new and default construct an array of objects. More... | |
template<class DataType > | |
void | DestructArray (DataType *dstPtr, const DataType *dstEnd) |
Destruct an array of objects. More... | |
template<class DataType > | |
void | PlacementNewCopyArray (DataType *dstPtr, const DataType *srcPtr, const DataType *srcEnd) |
Placement new and copy construct an array of objects. More... | |
template<class DataType > | |
void | PlacementNewFillArray (DataType *dstPtr, const DataType *dstEnd, const DataType &value) |
Placement new and copy construct an array of objects from a single object. More... | |
Object deep copy functions.
DataType* Murl::Util::DeepCopy::PlacementNew | ( | DataType * | dstPtr | ) |
Placement new an object with default constructor.
dstPtr | The destination memory pointer. |
DataType* Murl::Util::DeepCopy::PlacementNew | ( | DataType * | dstPtr, |
const DataType & | value | ||
) |
Placement new and copy construct an object.
dstPtr | The destination memory pointer. |
value | The object to copy. |
void Murl::Util::DeepCopy::PlacementNewArray | ( | DataType * | dstPtr, |
const DataType * | dstEnd | ||
) |
Placement new and default construct an array of objects.
dstPtr | The destination memory start pointer. |
dstEnd | The destination memory end pointer. |
void Murl::Util::DeepCopy::DestructArray | ( | DataType * | dstPtr, |
const DataType * | dstEnd | ||
) |
Destruct an array of objects.
dstPtr | The destination memory start pointer. |
dstEnd | The destination memory end pointer. |
void Murl::Util::DeepCopy::PlacementNewCopyArray | ( | DataType * | dstPtr, |
const DataType * | srcPtr, | ||
const DataType * | srcEnd | ||
) |
Placement new and copy construct an array of objects.
Overlapping memory blocks are not supported.
dstPtr | The destination memory pointer. |
srcPtr | The source memory start pointer. |
srcEnd | The source memory end pointer. |
void Murl::Util::DeepCopy::PlacementNewFillArray | ( | DataType * | dstPtr, |
const DataType * | dstEnd, | ||
const DataType & | value | ||
) |
Placement new and copy construct an array of objects from a single object.
dstPtr | The destination memory start pointer. |
dstEnd | The destination memory end pointer. |
value | The object to copy. |