CMS 3D CMS Logo

Public Member Functions | Private Attributes

FWHandle Class Reference

#include <Fireworks/Core/interface/FWHandle.h>

List of all members.

Public Member Functions

 FWHandle ()
const Tget () const
void getFrom (const FWEventItem &iItem)
const Toperator* () const
const Toperator-> () const

Private Attributes

const Tdata_

Detailed Description

Description: Used to get a particular data item from a FWEventItem

Usage: <usage>

Definition at line 33 of file FWHandle.h.


Constructor & Destructor Documentation

FWHandle::FWHandle ( ) [inline]

Definition at line 37 of file FWHandle.h.

              : data(0) {
   }

Member Function Documentation

const T* FWHandle::get ( void  ) const [inline]

Definition at line 42 of file FWHandle.h.

References data_.

                        {
      return data_;
   }
void FWHandle::getFrom ( const FWEventItem iItem) [inline]

Definition at line 56 of file FWHandle.h.

References FWEventItem::data(), and data_.

                                          {
      data_ = reinterpet_cast<const T*>(
         iItem.data(edm::Wrapper<T>::productTypeInfo())
         );
   }
const T& FWHandle::operator* ( void  ) const [inline]

Definition at line 50 of file FWHandle.h.

References data_.

                              {
      return *data_;
   }
const T* FWHandle::operator-> ( ) const [inline]

Definition at line 46 of file FWHandle.h.

References data_.

                               {
      return data_;
   }

Member Data Documentation

const T* FWHandle::data_ [private]

Definition at line 68 of file FWHandle.h.

Referenced by get(), getFrom(), operator*(), and operator->().