Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

IPtr Class Template Reference

#include <hyp.std.smart_pointer.h>

List of all members.

Public Methods

 IPtr ()
 IPtr (T *lp)
 IPtr (IUnknown *pI)
 ~IPtr ()
void Release ()
 operator T * ()
 operator T * () const
const T* get () const
T& operator * ()
T** operator & ()
T* operator-> ()
T* operator= (T *pI)
T* operator= (IUnknown *pI)
bool operator! ()
const hypIID& iid ()
void CreateInstance (const hypCLSID &clsid, IUnknown *pI, long clsctx=INPROC_SERVER)


Detailed Description

template<class T, const hypIID * piid> class IPtr

Don't use with IUnknown i.e. IPtr<IUnknown,&IID_hypIUnknown>, use IPtrUnknown.
Todo:
Specialisation de IPtr pour l'adpater à IPtrUnknown

T* operator=(psco::IUnknown* pI) lancement exception?


Member Function Documentation

template<class T, const hypIID * piid>
void IPtr<T, piid>::CreateInstance ( const hypCLSID & clsid,
IUnknown * pI,
long clsctx = INPROC_SERVER ) [inline]
 

Methods to create type-safe components.

template<class T, const hypIID * piid>
void IPtr<T, piid>::Release ( ) [inline]
 

Reset.

template<class T, const hypIID * piid>
T * IPtr<T, piid>::operator= ( IUnknown * pI ) [inline]
 

Assigns to an another interface.

template<class T, const hypIID * piid>
T * IPtr<T, piid>::operator= ( T * pI ) [inline]
 

Assigns to the same interface.


The documentation for this class was generated from the following file:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.