![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Similar to std::unique_ptr, but: 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:
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 |
Referenced by RawSimdUniquePtr(), operator=(), and swap().
|
inline |
References OGRE_MALLOC_SIMD, and RESTRICT_ALIAS.
|
inline |
References RawSimdUniquePtr().
|
inline |
References OGRE_FREE_SIMD.
|
inline |
References RESTRICT_ALIAS_RETURN.
|
inline |
References RESTRICT_ALIAS_RETURN.
|
inline |
|
inline |
|
inline |
References RawSimdUniquePtr(), and std::swap().