Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

ComObjPtr< C, RefOps > Class Template Reference

#include <ptr.h>

Inheritance diagram for ComObjPtr< C, RefOps >:

ComPtrBase< C, RefOps >

List of all members.


Detailed Description

template<class C, template< class > class RefOps = ComStrongRef>
class ComObjPtr< C, RefOps >

Smart COM pointer wrapper that automatically manages refcounting of pointers to interface implementation classes created on the component's (i.e. the server's) side. Differs from ComPtr by providing additional platform independent operations for creating new class instances.

Parameters:
C class that implements some COM interface

Definition at line 479 of file ptr.h.


Public Member Functions

C ** asOutParam ()
C ** asOutParam ()
 ComObjPtr (C *that_p)
 ComObjPtr (const ComObjPtr &that)
HRESULT createObject ()
template<class OC>
bool equalsTo (const ComPtrBase< OC > &oc) const
template<class I>
bool equalsTo (I *aThat) const
template<class OC>
bool equalsTo (const ComPtrBase< OC > &oc) const
template<class I>
bool equalsTo (I *aThat) const
bool isNull () const
bool isNull () const
 operator C * () const
 operator C * () const
bool operator! () const
bool operator! () const
NoAddRefRelease< C > * operator-> () const
NoAddRefRelease< C > * operator-> () const
bool operator< (C *that_p) const
bool operator< (C *that_p) const
ComObjPtroperator= (C *that_p)
ComObjPtroperator= (const ComObjPtr &that)
bool operator== (C *that_p) const
bool operator== (C *that_p) const
template<class I>
HRESULT queryInterfaceTo (I **pp) const
template<class I>
HRESULT queryInterfaceTo (I **pp) const
void setNull ()
void setNull ()

Private Types

typedef ComPtrBase< C, RefOps > Base

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

Generated by  Doxygen 1.6.0   Back to index