OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::D3D10GpuProgramPtr Class Reference

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

#include <OgreD3D10GpuProgram.h>

+ Inheritance diagram for Ogre::D3D10GpuProgramPtr:
+ Collaboration diagram for Ogre::D3D10GpuProgramPtr:

Public Member Functions

 D3D10GpuProgramPtr ()
 
 D3D10GpuProgramPtr (D3D10GpuProgram *rep)
 
 D3D10GpuProgramPtr (const D3D10GpuProgramPtr &r)
 
 D3D10GpuProgramPtr (const ResourcePtr &r)
 
void bind (D3D10GpuProgram *rep, SharedPtrFreeMethod inFreeMethod=SPFM_DELETE)
 Binds rep to the SharedPtr. More...
 
SharedPtrFreeMethod freeMethod () const
 
D3D10GpuProgramget () const
 
D3D10GpuProgramgetPointer () const
 
bool isNull (void) const
 
D3D10GpuProgramoperator* () const
 
D3D10GpuProgramoperator-> () const
 
D3D10GpuProgramPtroperator= (const ResourcePtr &r)
 Operator used to convert a ResourcePtr to a D3D10GpuProgramPtr. More...
 
void setNull (void)
 
bool unique () const
 
unsigned int useCount () const
 
unsigned int * useCountPointer () const
 

Protected Member Functions

virtual void destroy (void)
 
void release (void)
 
virtual void swap (SharedPtr< D3D10GpuProgram > &other)
 

Protected Attributes

D3D10GpuProgrampRep
 
unsigned int * pUseCount
 
SharedPtrFreeMethod useFreeMethod
 

Detailed Description

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

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 105 of file OgreD3D10GpuProgram.h.

Constructor & Destructor Documentation

Ogre::D3D10GpuProgramPtr::D3D10GpuProgramPtr ( )
inline

Definition at line 108 of file OgreD3D10GpuProgram.h.

Ogre::D3D10GpuProgramPtr::D3D10GpuProgramPtr ( D3D10GpuProgram rep)
inlineexplicit

Definition at line 109 of file OgreD3D10GpuProgram.h.

Ogre::D3D10GpuProgramPtr::D3D10GpuProgramPtr ( const D3D10GpuProgramPtr r)
inline

Definition at line 110 of file OgreD3D10GpuProgram.h.

Ogre::D3D10GpuProgramPtr::D3D10GpuProgramPtr ( const ResourcePtr r)
inline

Member Function Documentation

void Ogre::SharedPtr< D3D10GpuProgram >::bind ( D3D10GpuProgram rep,
SharedPtrFreeMethod  inFreeMethod = SPFM_DELETE 
)
inlineinherited

Binds rep to the SharedPtr.

Remarks
Assumes that the SharedPtr is uninitialised!

Definition at line 167 of file OgreSharedPtr.h.

virtual void Ogre::SharedPtr< D3D10GpuProgram >::destroy ( void  )
inlineprotectedvirtualinherited

Definition at line 223 of file OgreSharedPtr.h.

SharedPtrFreeMethod Ogre::SharedPtr< D3D10GpuProgram >::freeMethod ( ) const
inlineinherited

Definition at line 181 of file OgreSharedPtr.h.

D3D10GpuProgram * Ogre::SharedPtr< D3D10GpuProgram >::get ( void  ) const
inlineinherited

Definition at line 161 of file OgreSharedPtr.h.

D3D10GpuProgram * Ogre::SharedPtr< D3D10GpuProgram >::getPointer ( ) const
inlineinherited

Definition at line 180 of file OgreSharedPtr.h.

bool Ogre::SharedPtr< D3D10GpuProgram >::isNull ( void  ) const
inlineinherited

Definition at line 183 of file OgreSharedPtr.h.

D3D10GpuProgram & Ogre::SharedPtr< D3D10GpuProgram >::operator* ( ) const
inlineinherited

Definition at line 159 of file OgreSharedPtr.h.

D3D10GpuProgram * Ogre::SharedPtr< D3D10GpuProgram >::operator-> ( ) const
inlineinherited

Definition at line 160 of file OgreSharedPtr.h.

D3D10GpuProgramPtr& Ogre::D3D10GpuProgramPtr::operator= ( const ResourcePtr r)
inline
void Ogre::SharedPtr< D3D10GpuProgram >::release ( void  )
inlineprotectedinherited

Definition at line 197 of file OgreSharedPtr.h.

void Ogre::SharedPtr< D3D10GpuProgram >::setNull ( void  )
inlineinherited

Definition at line 185 of file OgreSharedPtr.h.

virtual void Ogre::SharedPtr< D3D10GpuProgram >::swap ( SharedPtr< D3D10GpuProgram > &  other)
inlineprotectedvirtualinherited

Definition at line 247 of file OgreSharedPtr.h.

bool Ogre::SharedPtr< D3D10GpuProgram >::unique ( ) const
inlineinherited

Definition at line 176 of file OgreSharedPtr.h.

unsigned int Ogre::SharedPtr< D3D10GpuProgram >::useCount ( ) const
inlineinherited

Definition at line 177 of file OgreSharedPtr.h.

unsigned int* Ogre::SharedPtr< D3D10GpuProgram >::useCountPointer ( ) const
inlineinherited

Definition at line 178 of file OgreSharedPtr.h.

Member Data Documentation

D3D10GpuProgram * Ogre::SharedPtr< D3D10GpuProgram >::pRep
protectedinherited

Definition at line 63 of file OgreSharedPtr.h.

unsigned int* Ogre::SharedPtr< D3D10GpuProgram >::pUseCount
protectedinherited

Definition at line 64 of file OgreSharedPtr.h.

SharedPtrFreeMethod Ogre::SharedPtr< D3D10GpuProgram >::useFreeMethod
protectedinherited

Definition at line 65 of file OgreSharedPtr.h.


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