#include <ESHandle.h>
Public Member Functions | |
ESHandle () | |
bool | isValid () const |
const T & | operator* () const |
const T * | operator-> () const |
const std::type_info & | typeInfo () const |
Private Member Functions | |
ESHandle (const void *iData) | |
ESHandle (cms::Exception *iException) | |
Private Attributes | |
const T * | m_data |
boost::shared_ptr< cms::Exception > | m_exception |
Friends | |
class | fwlite::Record |
Definition at line 37 of file ESHandle.h.
fwlite::ESHandle< T >::ESHandle | ( | ) | [inline] |
Definition at line 42 of file ESHandle.h.
: m_data(0), m_exception(eshandle_not_set_exception()) {}
fwlite::ESHandle< T >::ESHandle | ( | const void * | iData | ) | [inline, private] |
Definition at line 70 of file ESHandle.h.
: m_data(static_cast<const T*>(iData)), m_exception() {}
fwlite::ESHandle< T >::ESHandle | ( | cms::Exception * | iException | ) | [inline, private] |
Definition at line 73 of file ESHandle.h.
: m_data(0), m_exception(iException) {}
bool fwlite::ESHandle< T >::isValid | ( | void | ) | const [inline] |
Definition at line 45 of file ESHandle.h.
References fwlite::ESHandle< T >::m_data.
Referenced by main().
{ return 0!=m_data;}
const T& fwlite::ESHandle< T >::operator* | ( | ) | const [inline] |
Definition at line 47 of file ESHandle.h.
References fwlite::ESHandle< T >::m_data, and fwlite::ESHandle< T >::m_exception.
{ if(0!=m_exception.get()) { throw *m_exception; } return *m_data; }
const T* fwlite::ESHandle< T >::operator-> | ( | ) | const [inline] |
Definition at line 54 of file ESHandle.h.
References fwlite::ESHandle< T >::m_data, and fwlite::ESHandle< T >::m_exception.
{ if(0!=m_exception.get()) { throw *m_exception; } return m_data; }
const std::type_info& fwlite::ESHandle< T >::typeInfo | ( | ) | const [inline] |
Definition at line 62 of file ESHandle.h.
{ return typeid(T); }
friend class fwlite::Record [friend] |
Definition at line 39 of file ESHandle.h.
const T* fwlite::ESHandle< T >::m_data [private] |
Definition at line 80 of file ESHandle.h.
Referenced by fwlite::ESHandle< T >::isValid(), fwlite::ESHandle< T >::operator*(), and fwlite::ESHandle< T >::operator->().
boost::shared_ptr<cms::Exception> fwlite::ESHandle< T >::m_exception [private] |
Definition at line 81 of file ESHandle.h.
Referenced by fwlite::ESHandle< T >::operator*(), and fwlite::ESHandle< T >::operator->().