OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Similar to std::unique_ptr, but: Uses a custom allocator (OGRE_MALLOC_SIMD) Pointers must be really unique (RESTRICT_ALIAS modifier is used!) To access the pointer, use get(); instead of using this container directly The purpose of this container is to enclose a raw pointer while avoiding breaking the rule of 3 when copying. More...
#include <OgreRawPtr.h>
Public Member Functions | |
RawSimdUniquePtr () | |
RawSimdUniquePtr (const RawSimdUniquePtr ©) | |
RawSimdUniquePtr (size_t numElements) | |
~RawSimdUniquePtr () | |
T *RESTRICT_ALIAS_RETURN | get () |
const T *RESTRICT_ALIAS_RETURN | get () const |
void | operator= (const RawSimdUniquePtr ©) |
size_t | size () const |
void | swap (RawSimdUniquePtr ©) |
Similar to std::unique_ptr, but: Uses a custom allocator (OGRE_MALLOC_SIMD) Pointers must be really unique (RESTRICT_ALIAS modifier is used!) To access the pointer, use get(); instead of using this container directly The purpose of this container is to enclose a raw pointer while avoiding breaking the rule of 3 when copying.
When defining the macro "OGRE_RAW_PTR_PROFILE", this container will raise an exception if the copy constructor or the assignment operator are used.
|
inline |
|
inline |
|
inline |
References Ogre::Exception::ERR_INVALID_STATE, OGRE_EXCEPT, OGRE_MALLOC_SIMD, and RESTRICT_ALIAS.
|
inline |
References OGRE_FREE_SIMD.
|
inline |
|
inline |
|
inline |
References Ogre::Exception::ERR_INVALID_STATE, OGRE_EXCEPT, OGRE_FREE_SIMD, OGRE_MALLOC_SIMD, and RESTRICT_ALIAS.
|
inline |
|
inline |
References std::swap().