OGRE 2.1
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. | |
SharedPtr (const SharedPtr &r) | |
template<class Y > | |
SharedPtr (const SharedPtr< Y > &r) | |
template<class Y > | |
SharedPtr (Y *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE) | |
Constructor. | |
~SharedPtr () | |
void | bind (T *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE) |
Binds rep to the SharedPtr. | |
template<typename Y > | |
SharedPtr< Y > | dynamicCast () const |
T * | get () const |
T * | getPointer () const |
bool | isNull (void) 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 (T *rep) |
void | reset (void) |
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::GpuProgram::getConstantDefinitions(), and Ogre::Lod0Stripifier::StripLod0Vertices().
|
inline |
Referenced by Ogre::HighLevelGpuProgram::_getBindingDelegate().
|
inline |
|
inline |
References Ogre::SharedPtr< T >::unspecified_bool().
|
inline |
|
inline |
|
inline |
|
inline |
References Ogre::SharedPtr< T >::SharedPtr.
|
inline |
Referenced by Ogre::SharedPtr< T >::setNull().
|
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().