| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Types | Public Member Functions | Private Attributes

# PtrSetter< ActualType > Class Template Reference

Templated specialization of BasePtrSetter. More...

`#include <IUpdateManagerSvc.h>`

Inheritance diagram for PtrSetter< ActualType >:
[legend]
Collaboration diagram for PtrSetter< ActualType >:
[legend]

List of all members.

## Public Types
typedef ActualType | dest_type
## Public Member Functions
| PtrSetter (dest_type *&dest)
| Construct a new object using the destination pointer.
virtual | ~PtrSetter ()
| Empty virtual destructor.
virtual void | set (DataObject *obj)
| sets the internal pointer to the provided data object (with a dynamic_cast).
virtual bool | isNull ()
| tells if the internal pointer is NULL.
## Private Attributes
dest_type ** | m_storage
| pointer to the pointer to fill provided by the user.

## Detailed Description

### template<class ActualType>
class PtrSetter< ActualType >

Templated specialization of BasePtrSetter.

Author:
  Marco CLEMENCIC

Date:
  2005-12-14

Definition at line 145 of file IUpdateManagerSvc.h.

## Member Typedef Documentation

template<class ActualType >

typedef ActualType PtrSetter< ActualType >::dest_type

Definition at line 147 of file IUpdateManagerSvc.h.

## Constructor & Destructor Documentation

template<class ActualType >

PtrSetter< ActualType >::PtrSetter | ( | dest_type *& | dest ) | `[inline]`

Construct a new object using the destination pointer.

Definition at line 150 of file IUpdateManagerSvc.h.

                                 :m_storage(&dest) {
        *m_storage = NULL;
      }

template<class ActualType >

virtual PtrSetter< ActualType >::~PtrSetter | ( | ) | `[inline, virtual]`

Empty virtual destructor.

Definition at line 155 of file IUpdateManagerSvc.h.

    {}

## Member Function Documentation

template<class ActualType >

virtual bool PtrSetter< ActualType >::isNull | ( | ) | `[inline, virtual]`

tells if the internal pointer is NULL.

Implements BasePtrSetter.

Definition at line 161 of file IUpdateManagerSvc.h.

    { return *m_storage == NULL; }

template<class ActualType >

virtual void PtrSetter< ActualType >::set | ( | DataObject * | obj ) | `[inline, virtual]`

sets the internal pointer to the provided data object (with a dynamic_cast).

Implements BasePtrSetter.

Definition at line 157 of file IUpdateManagerSvc.h.

                                        {
        *m_storage = dynamic_cast<dest_type *>(obj);
      }

## Member Data Documentation

template<class ActualType >

dest_type** PtrSetter< ActualType >::m_storage`[private]`

pointer to the pointer to fill provided by the user.

Definition at line 165 of file IUpdateManagerSvc.h.

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

- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r2/GaudiKernel/GaudiKernel/IUpdateManagerSvc.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines