Fovia C++ In-Process API
Public Member Functions | Public Attributes

CAdapt< T > Class Template Reference

List of all members.

Public Member Functions

 CAdapt ()
 CAdapt (const T &rSrc)
 CAdapt (const CAdapt &rSrCA)
 operator const T & () const
 operator T & ()
bool operator< (const T &rSrc) const
CAdaptoperator= (const T &rSrc)
bool operator== (const T &rSrc) const

Public Attributes

m_T

Detailed Description

template<class T>
class CAdapt< T >

Class to adapt CBComPtr for use with STL containers the syntax to use it is:

        std::vector< CAdapt <CBComPtr<I > > vect;

Constructor & Destructor Documentation

template<class T >
CAdapt< T >::CAdapt ( ) [inline]

Standard constructor.

template<class T >
CAdapt< T >::CAdapt ( const T &  rSrc) [inline]

Constructor that assigns a CBComPtr to this object.

Parameters:
rSrcThe CBComPtr to assign to this object.

References CAdapt< T >::m_T.

template<class T >
CAdapt< T >::CAdapt ( const CAdapt< T > &  rSrCA) [inline]

Standard copy constructor.

Parameters:
rSrCAThe CAdapt which will be copied to the new object.

References CAdapt< T >::m_T.


Member Function Documentation

template<class T >
CAdapt< T >::operator const T & ( ) const [inline]

operator

template<class T >
CAdapt< T >::operator T & ( ) [inline]

Casting this object to a CBComPtr returns the internal CBComPtr contained in this object.

Returns:
The internal CBComPtr.

References CAdapt< T >::m_T.

template<class T >
bool CAdapt< T >::operator< ( const T &  rSrc) const [inline]

Returns the result of the following operation: internalCBComPtr < rSrc

Parameters:
rSrcThe right hand side of the compare operation.
Returns:
true if the comparison is true, false otherwise.

References CAdapt< T >::m_T.

template<class T >
CAdapt& CAdapt< T >::operator= ( const T &  rSrc) [inline]

Assigns the CBComPtr to this CAdapt object.

Parameters:
rSrcThe CBComPtr to assign to this object.
Returns:
A reference to this object.

References CAdapt< T >::m_T.

template<class T >
bool CAdapt< T >::operator== ( const T &  rSrc) const [inline]

Returns the result of the following operation: internalCBComPtr == rSrc

Parameters:
rSrcThe right hand side of the compare operation.
Returns:
true if the comparison is true, false otherwise.

References CAdapt< T >::m_T.


Member Data Documentation

template<class T >
T CAdapt< T >::m_T