OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Reference-counted shared pointer, used for objects where implicit destruction is required. More...
#include <OgreSharedPtr.h>
Public Types | |
typedef void(* | unspecified_bool_type) (SharedPtr ***) |
Public Member Functions | |
SharedPtr () | |
Constructor, does not initialise the SharedPtr. More... | |
SharedPtr (const SharedPtr &r) | |
template<class Y > | |
SharedPtr (const SharedPtr< Y > &r) | |
template<class Y > | |
SharedPtr (Y *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE) | |
Constructor. More... | |
~SharedPtr () | |
void | bind (T *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE) |
Binds rep to the SharedPtr. More... | |
template<typename Y > | |
SharedPtr< Y > | dynamicCast () const |
T * | get () const |
T * | getPointer () const |
bool | isNull () const |
operator unspecified_bool_type () const | |
T & | operator* () const |
T * | operator-> () const |
SharedPtr & | operator= (const SharedPtr &r) |
template<class Y > | |
SharedPtr & | operator= (const SharedPtr< Y > &r) |
void | reset () |
void | reset (T *rep) |
void | setNull () |
void | setUseCount (unsigned value) |
template<typename Y > | |
SharedPtr< Y > | staticCast () const |
bool | unique () const |
unsigned int | use_count () const |
unsigned int | useCount () const |
Static Public Member Functions | |
static void | unspecified_bool (SharedPtr ***) |
Friends | |
template<typename Y > | |
class | SharedPtr |
Reference-counted shared pointer, used for objects where implicit destruction is required.
typedef void(* Ogre::SharedPtr< T >::unspecified_bool_type) (SharedPtr ***) |
|
inline |
|
inlineexplicit |
Constructor.
rep | The pointer to take ownership of |
inFreeMethod | The mechanism to use to free the pointer |
|
inline |
References Ogre::SharedPtrInfo::useCount.
|
inline |
References Ogre::SharedPtrInfo::useCount.
|
inline |
|
inline |
Binds rep to the SharedPtr.
|
inline |
References Ogre::SharedPtrInfo::useCount.
|
inline |
Referenced by Ogre::v1::HardwareBufferLockGuard::HardwareBufferLockGuard(), Ogre::GpuProgram::getConstantDefinitions(), Ogre::v1::HardwareBufferLockGuard::lock(), Ogre::operator!=(), std::tr1::hash< Ogre::SharedPtr< T > >::operator()(), Ogre::operator<(), Ogre::operator==(), Ogre::VerticesRemapInfo::performIndexDataRemap(), and Ogre::Lod0Stripifier::StripLod0Vertices().
|
inline |
Referenced by Ogre::HighLevelGpuProgram::_getBindingDelegate().
|
inline |
|
inline |
References Ogre::SharedPtr< T >::unspecified_bool().
|
inline |
|
inline |
|
inline |
References std::swap().
|
inline |
References std::swap().
|
inline |
Referenced by Ogre::SharedPtr< T >::setNull().
|
inline |
References Ogre::SharedPtr< T >::SharedPtr.
|
inline |
References Ogre::SharedPtr< T >::reset().
|
inline |
References Ogre::SharedPtrInfo::useCount.
|
inline |
References Ogre::SharedPtrInfo::useCount.
|
inline |
References Ogre::AtomicScalar< T >::get(), and Ogre::SharedPtrInfo::useCount.
|
inlinestatic |
Referenced by Ogre::SharedPtr< T >::operator unspecified_bool_type().
|
inline |
References Ogre::AtomicScalar< T >::get(), and Ogre::SharedPtrInfo::useCount.
Referenced by Ogre::SharedPtr< T >::useCount().
|
inline |
References Ogre::SharedPtr< T >::use_count().
Referenced by Ogre::SharedPtr< T >::reset().