Ogre::MeshPtr Class Reference

Specialisation of SharedPtr to allow SharedPtr to be assigned to MeshPtr. More...

#include <OgreMesh.h>

Inheritance diagram for Ogre::MeshPtr:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 MeshPtr ()
 MeshPtr (Mesh *rep)
 MeshPtr (const MeshPtr &r)
 MeshPtr (const ResourcePtr &r)
MeshPtroperator= (const ResourcePtr &r)
 Operator used to convert a ResourcePtr to a MeshPtr.
T & operator* () const
T * operator-> () const
T * get () const
void bind (T *rep, SharedPtrFreeMethod freeMethod=SPFM_DELETE)
 Binds rep to the SharedPtr.
bool unique () const
unsigned int useCount () const
unsigned int * useCountPointer () const
T * getPointer () const
SharedPtrFreeMethod freeMethod () const
bool isNull (void) const
void setNull (void)

Protected Member Functions

void destroy (void)
 Override destroy since we need to delete Mesh after fully defined.
void release (void)
virtual void swap (SharedPtr< T > &other)

Protected Attributes

T * pRep
unsigned int * pUseCount
SharedPtrFreeMethod useFreeMethod


Detailed Description

Specialisation of SharedPtr to allow SharedPtr to be assigned to MeshPtr.

Note:
Has to be a subclass since we need operator=. We could templatise this instead of repeating per Resource subclass, except to do so requires a form VC6 does not support i.e. ResourceSubclassPtr<T> : public SharedPtr<T>

Definition at line 867 of file OgreMesh.h.


Constructor & Destructor Documentation

Ogre::MeshPtr::MeshPtr (  ) 

Definition at line 870 of file OgreMesh.h.

Ogre::MeshPtr::MeshPtr ( Mesh rep  )  [explicit]

Definition at line 871 of file OgreMesh.h.

Ogre::MeshPtr::MeshPtr ( const MeshPtr r  ) 

Definition at line 872 of file OgreMesh.h.

Ogre::MeshPtr::MeshPtr ( const ResourcePtr r  ) 


Member Function Documentation

MeshPtr& Ogre::MeshPtr::operator= ( const ResourcePtr r  ) 

Operator used to convert a ResourcePtr to a MeshPtr.

void Ogre::MeshPtr::destroy ( void   )  [protected, virtual]

Override destroy since we need to delete Mesh after fully defined.

Reimplemented from Ogre::SharedPtr< T >.

template<class T>
T& Ogre::SharedPtr< T >::operator* (  )  const [inherited]

Definition at line 151 of file OgreSharedPtr.h.

template<class T>
T* Ogre::SharedPtr< T >::operator-> (  )  const [inherited]

Definition at line 152 of file OgreSharedPtr.h.

template<class T>
T* Ogre::SharedPtr< T >::get ( void   )  const [inherited]

Definition at line 153 of file OgreSharedPtr.h.

Referenced by Ogre::operator!=(), and Ogre::operator==().

template<class T>
void Ogre::SharedPtr< T >::bind ( T *  rep,
SharedPtrFreeMethod  freeMethod = SPFM_DELETE 
) [inherited]

Binds rep to the SharedPtr.

Remarks:
Assumes that the SharedPtr is uninitialised!

Definition at line 159 of file OgreSharedPtr.h.

template<class T>
bool Ogre::SharedPtr< T >::unique (  )  const [inherited]

Definition at line 168 of file OgreSharedPtr.h.

template<class T>
unsigned int Ogre::SharedPtr< T >::useCount (  )  const [inherited]

Definition at line 169 of file OgreSharedPtr.h.

template<class T>
unsigned int* Ogre::SharedPtr< T >::useCountPointer (  )  const [inherited]

template<class T>
T* Ogre::SharedPtr< T >::getPointer (  )  const [inherited]

template<class T>
SharedPtrFreeMethod Ogre::SharedPtr< T >::freeMethod (  )  const [inherited]

template<class T>
bool Ogre::SharedPtr< T >::isNull ( void   )  const [inherited]

template<class T>
void Ogre::SharedPtr< T >::setNull ( void   )  [inherited]

Definition at line 177 of file OgreSharedPtr.h.

template<class T>
void Ogre::SharedPtr< T >::release ( void   )  [protected, inherited]

template<class T>
virtual void Ogre::SharedPtr< T >::swap ( SharedPtr< T > &  other  )  [protected, virtual, inherited]

Definition at line 239 of file OgreSharedPtr.h.

Referenced by Ogre::SharedPtr< Ogre::AnimableValue >::operator=().


Member Data Documentation

template<class T>
T* Ogre::SharedPtr< T >::pRep [protected, inherited]

template<class T>
unsigned int* Ogre::SharedPtr< T >::pUseCount [protected, inherited]

template<class T>
SharedPtrFreeMethod Ogre::SharedPtr< T >::useFreeMethod [protected, inherited]


The documentation for this class was generated from the following file:

Copyright © 2008 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:04:13 2009