OGRE
2.2.4
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... | |
template<class Y > | |
SharedPtr (Y *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE) | |
Constructor. More... | |
SharedPtr (const SharedPtr &r) | |
template<class Y > | |
SharedPtr (const SharedPtr< Y > &r) | |
~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 (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 (void) |
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 |
|
inline |
|
inline |
|
inline |
Binds rep to the SharedPtr.
|
inline |
|
inline |
Referenced by Ogre::GpuProgram::getConstantDefinitions(), Ogre::v1::HardwareBufferLockGuard::HardwareBufferLockGuard(), Ogre::v1::HardwareBufferLockGuard::lock(), Ogre::operator!=(), std::tr1::hash< Ogre::SharedPtr< T > >::operator()(), Ogre::operator==(), and Ogre::Lod0Stripifier::StripLod0Vertices().
|
inline |
Referenced by Ogre::HighLevelGpuProgram::_getBindingDelegate().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |