Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SmartIF Class Template Reference

Smart pointer to handle easily interfaces. More...

#include <SmartIF.h>

Inheritance diagram for SmartIF:

SmartIFBase List of all members.

Public Methods

 SmartIF (const IID& iid, IInterface* iface)
 Standard constructor with initialisation. More...

 SmartIF (const IID& iid, TYPE* iface)
 Standard constructor with initialisation. More...

 SmartIF (const IID& iid)
 Standard constructor with initialisation. More...

 SmartIF (TYPE* iface = 0)
 Standard constructor with initialisation. More...

 SmartIF (SmartIF<TYPE>& copy)
 Copy constructor. More...

virtual ~SmartIF ()
 Standard destructor. More...

SmartIF& operator= (IInterface* iface)
 Assignment operator with conversion to requested interface type. More...

SmartIFBase<TYPE>& operator= (TYPE* iface)
 Simple assignment operator. More...

template<classT> SmartIFBase<TYPE>& operator=<T> (SmartIFBase<T>& iface)
 Copy assignment operator with conversion to requested interface type. More...

SmartIFBase<TYPE>& operator= (SmartIFBase<TYPE>& iface)
 Copy assignment operator. More...

TYPE*& pRef ()
 Get reference to interface pointer. More...

const TYPE* const& pRef () const
 Get reference to interface pointer (CONST). More...


Detailed Description

template<class TYPE> template class SmartIF

Smart pointer to handle easily interfaces.

Description: A small class to easy the use of Gaudi interfaces.

Base Class: SmartIFBase<TYPE>

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 30/10/99| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 125 of file SmartIF.h.


Constructor & Destructor Documentation

template<classTYPE>
SmartIF<TYPE>::SmartIF<TYPE> ( const IID & iid,
IInterface * iface ) [inline]
 

Standard constructor with initialisation.

Definition at line 128 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE>::SmartIF<TYPE> ( const IID & iid,
TYPE * iface ) [inline]
 

Standard constructor with initialisation.

Definition at line 132 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE>::SmartIF<TYPE> ( const IID & iid ) [inline]
 

Standard constructor with initialisation.

Definition at line 136 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE>::SmartIF<TYPE> ( TYPE * iface = 0 ) [inline]
 

Standard constructor with initialisation.

Definition at line 139 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE>::SmartIF<TYPE> ( SmartIF< TYPE >& copy ) [inline]
 

Copy constructor.

Definition at line 143 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE>::~SmartIF<TYPE> ( ) [inline, virtual]
 

Standard destructor.

Definition at line 147 of file SmartIF.h.


Member Function Documentation

template<classTYPE>
SmartIFBase< TYPE >& SmartIF<TYPE>::operator= ( SmartIFBase< TYPE >& iface ) [inline]
 

Copy assignment operator.

Definition at line 186 of file SmartIF.h.

template<classTYPE>
template<classT>
SmartIFBase< TYPE >& SmartIF<TYPE>::operator= ( SmartIFBase< T >& iface ) [inline]
 

Copy assignment operator with conversion to requested interface type.

Definition at line 173 of file SmartIF.h.

template<classTYPE>
SmartIFBase< TYPE >& SmartIF<TYPE>::operator= ( TYPE * iface ) [inline]
 

Simple assignment operator.

Definition at line 162 of file SmartIF.h.

template<classTYPE>
SmartIF<TYPE> & SmartIF<TYPE>::operator= ( IInterface * iface ) [inline]
 

Assignment operator with conversion to requested interface type.

Definition at line 150 of file SmartIF.h.

Referenced by SmartIF< IInterface >::SmartIF(), and SmartIF().

template<classTYPE>
const TYPE *const & SmartIF<TYPE>::pRef ( ) const [inline]
 

Get reference to interface pointer (CONST).

Definition at line 200 of file SmartIF.h.

template<classTYPE>
TYPE *& SmartIF<TYPE>::pRef ( ) [inline]
 

Get reference to interface pointer.

Definition at line 196 of file SmartIF.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:16 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000