#include <Wrapper.h>
Public Types | |
typedef T | value_type |
typedef T | wrapped_type |
Public Member Functions | |
std::type_info const & | dynamicTypeInfo () const |
std::type_info const & | dynamicTypeInfo_ () const |
void | fillPtrVector (std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const |
void | fillView (ProductID const &id, std::vector< void const * > &pointers, helper_vector_ptr &helpers) const |
bool | hasIsProductEqual () const |
bool | isMergeable () const |
bool | isPresent () const |
bool | isProductEqual (Wrapper< T > const *wrappedNewProduct) const |
bool | mergeProduct (Wrapper< T > const *wrappedNewProduct) |
T const * | operator-> () const |
T const * | product () const |
void | setPtr (std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const |
Wrapper (T *) | |
Wrapper () | |
Wrapper (std::auto_ptr< T > ptr) | |
~Wrapper () | |
Static Public Member Functions | |
static WrapperInterface< T > const * | getInterface () dso_export |
static std::type_info const & | productTypeInfo () |
static std::type_info const & | typeInfo () |
Private Member Functions | |
Wrapper< T > & | operator= (Wrapper< T > const &) |
Wrapper (Wrapper< T > const &rh) | |
Private Attributes | |
T | obj |
bool | present |
typedef T edm::Wrapper< T >::value_type |
typedef T edm::Wrapper< T >::wrapped_type |
edm::Wrapper< T >::Wrapper | ( | ) | [inline] |
edm::Wrapper< T >::Wrapper | ( | std::auto_ptr< T > | ptr | ) | [explicit] |
Definition at line 288 of file Wrapper.h.
References edm::Wrapper< T >::obj, edm::Wrapper< T >::present, and relativeConstraints::value.
edm::Wrapper< T >::~Wrapper | ( | ) | [inline] |
edm::Wrapper< T >::Wrapper | ( | T * | ptr | ) |
REFLEX must call the following constructor the constructor takes ownership of T*
Definition at line 302 of file Wrapper.h.
References edm::Wrapper< T >::obj, edm::Wrapper< T >::present, groupFilesInBlocks::temp, and relativeConstraints::value.
: present(ptr != 0), obj() { std::auto_ptr<T> temp(ptr); if (present) { // The following will call swap if T has such a function, // and use assignment if T has no such function. typename boost::mpl::if_c<detail::has_swap_function<T>::value, DoSwap<T>, DoAssign<T> >::type swap_or_assign; swap_or_assign(obj, *ptr); } }
edm::Wrapper< T >::Wrapper | ( | Wrapper< T > const & | rh | ) | [private] |
std::type_info const& edm::Wrapper< T >::dynamicTypeInfo | ( | ) | const [inline] |
Definition at line 62 of file Wrapper.h.
References edm::Wrapper< T >::dynamicTypeInfo_().
{return dynamicTypeInfo_();}
std::type_info const& edm::Wrapper< T >::dynamicTypeInfo_ | ( | ) | const [inline] |
Definition at line 65 of file Wrapper.h.
Referenced by edm::Wrapper< T >::dynamicTypeInfo().
{return typeid(T);}
void edm::Wrapper< T >::fillPtrVector | ( | std::type_info const & | iToType, |
std::vector< unsigned long > const & | iIndicies, | ||
std::vector< void const * > & | oPtr | ||
) | const |
Definition at line 177 of file Wrapper.h.
References VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<has_setPtr<T>::value, DoSetPtr<T>, DoNotSetPtr<T> >::type maybe_filler; maybe_filler(this->obj, iToType, iIndices, oPtr); }
void edm::Wrapper< T >::fillView | ( | ProductID const & | id, |
std::vector< void const * > & | pointers, | ||
helper_vector_ptr & | helpers | ||
) | const [inline] |
Definition at line 116 of file Wrapper.h.
References VarParsing::obj, and relativeConstraints::value.
{ // This should never be called with non-empty arguments, or an // invalid ID; any attempt to do so is an indication of a coding error. assert(id.isValid()); assert(pointers.empty()); assert(helpers.get() == 0); typename boost::mpl::if_c<has_fillView<T>::value, DoFillView<T>, DoNotFillView<T> >::type maybe_filler; maybe_filler(obj, id, pointers, helpers); }
WrapperInterface< T > const * edm::Wrapper< T >::getInterface | ( | ) | [static] |
bool edm::Wrapper< T >::hasIsProductEqual | ( | ) | const |
Definition at line 335 of file Wrapper.h.
References VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<detail::has_isProductEqual_function<T>::value, DoHasIsProductEqual<T>, DoNotHasIsProductEqual<T> >::type has_is_equal; return has_is_equal(obj); }
bool edm::Wrapper< T >::isMergeable | ( | ) | const |
Definition at line 319 of file Wrapper.h.
References VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<detail::has_mergeProduct_function<T>::value, IsMergeable<T>, IsNotMergeable<T> >::type is_mergeable; return is_mergeable(obj); }
bool edm::Wrapper< T >::isPresent | ( | ) | const [inline] |
bool edm::Wrapper< T >::isProductEqual | ( | Wrapper< T > const * | wrappedNewProduct | ) | const |
Definition at line 343 of file Wrapper.h.
References edm::Wrapper< T >::obj, VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<detail::has_isProductEqual_function<T>::value, DoIsProductEqual<T>, DoNotIsProductEqual<T> >::type is_equal; return is_equal(obj, wrappedNewProduct->obj); }
bool edm::Wrapper< T >::mergeProduct | ( | Wrapper< T > const * | wrappedNewProduct | ) |
Definition at line 327 of file Wrapper.h.
References edm::Wrapper< T >::obj, VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<detail::has_mergeProduct_function<T>::value, DoMergeProduct<T>, DoNotMergeProduct<T> >::type merge_product; return merge_product(obj, wrappedNewProduct->obj); }
T const* edm::Wrapper< T >::operator-> | ( | ) | const [inline] |
Definition at line 37 of file Wrapper.h.
References edm::Wrapper< T >::product().
{return product();}
T const* edm::Wrapper< T >::product | ( | ) | const [inline] |
Definition at line 36 of file Wrapper.h.
References edm::Wrapper< T >::obj, and edm::Wrapper< T >::present.
Referenced by edm::convert_handle(), fwlite::Handle< Collection >::getByLabel(), edm::refcore::getProductPtr_(), and edm::Wrapper< T >::operator->().
static std::type_info const& edm::Wrapper< T >::productTypeInfo | ( | ) | [inline, static] |
void edm::Wrapper< T >::setPtr | ( | std::type_info const & | iToType, |
unsigned long | iIndex, | ||
void const *& | oPtr | ||
) | const [inline] |
Definition at line 167 of file Wrapper.h.
References VarParsing::obj, and relativeConstraints::value.
{ typename boost::mpl::if_c<has_setPtr<T>::value, DoSetPtr<T>, DoNotSetPtr<T> >::type maybe_filler; maybe_filler(this->obj, iToType, iIndex, oPtr); }
static std::type_info const& edm::Wrapper< T >::typeInfo | ( | ) | [inline, static] |
Definition at line 41 of file Wrapper.h.
Referenced by fwlite::Handle< Collection >::getBranchNameFor(), fwlite::Handle< Collection >::getByLabel(), and fwlite::Scanner< Collection >::Scanner().
{ return typeid(Wrapper<T>);}
T edm::Wrapper< T >::obj [private] |
Definition at line 84 of file Wrapper.h.
Referenced by edm::Wrapper< T >::isProductEqual(), edm::Wrapper< T >::mergeProduct(), edm::Wrapper< T >::product(), and edm::Wrapper< T >::Wrapper().
bool edm::Wrapper< T >::present [private] |
Definition at line 82 of file Wrapper.h.
Referenced by edm::Wrapper< T >::isPresent(), edm::Wrapper< T >::product(), and edm::Wrapper< T >::Wrapper().