csArraySafeCopyElementHandler< T > Class Template Reference
|static void||MoveElements (T *mem, size_t dest, size_t src, size_t count)|
|Move elements inside a region. |
|template<typename Allocator >|
|static T *||ResizeRegion (Allocator &alloc, T *mem, size_t relevantcount, size_t oldcount, size_t newcount)|
|Reallocates a region allocated by |
class csArraySafeCopyElementHandler< T >
Special element handler for csArray that makes sure that when the array is reallocated that the objects are properly constructed and destructed at their new position.
This is needed for objects that can not be safely moved around in memory (like weak references). This is of course slower and that is the reason that this is not done by default.
Member Function Documentation
|static void csArraySafeCopyElementHandler< T >::MoveElements||(||T *||mem,|
|static T* csArraySafeCopyElementHandler< T >::ResizeRegion||(||Allocator &||alloc,|
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.4.1 by doxygen 1.7.1